diff options
| author | degasus <wickmarkus@web.de> | 2013-11-25 09:05:50 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2013-11-25 09:05:50 +0100 |
| commit | b93756df870021d239e95d17cf76335cd3417e95 (patch) | |
| tree | 95d088c7bac168f9ab055a5723ace79a060e1f88 /Source/Core/VideoBackends | |
| parent | afcf0e65d1a548ea0215454c58a91708fad2e92a (diff) | |
OpenGL: drop texture_rect hack
Everything is moved to texture2d (but often in a hacky way), so we don't need this global hack any more.
Diffstat (limited to 'Source/Core/VideoBackends')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/Src/ProgramShaderCache.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Source/Core/VideoBackends/OGL/Src/ProgramShaderCache.cpp b/Source/Core/VideoBackends/OGL/Src/ProgramShaderCache.cpp index f998c6ced2..9a9a6f3cf9 100644 --- a/Source/Core/VideoBackends/OGL/Src/ProgramShaderCache.cpp +++ b/Source/Core/VideoBackends/OGL/Src/ProgramShaderCache.cpp @@ -589,11 +589,6 @@ void ProgramShaderCache::CreateHeader ( void ) "#define frac fract\n" "#define lerp mix\n" - // texture2d hack - "%s\n" - "%s\n" - "%s\n" - , v==GLSLES3 ? "#version 300 es" : v==GLSL_130 ? "#version 130" : v==GLSL_140 ? "#version 140" : "#version 150" , g_ActiveConfig.backend_info.bSupportsGLSLUBO && v<GLSL_140 ? "#extension GL_ARB_uniform_buffer_object : enable" : "" , g_ActiveConfig.backend_info.bSupportsEarlyZ ? "#extension GL_ARB_shader_image_load_store : enable" : "" @@ -602,10 +597,6 @@ void ProgramShaderCache::CreateHeader ( void ) , DriverDetails::HasBug(DriverDetails::BUG_BROKENCENTROID) ? "in" : "centroid in" , DriverDetails::HasBug(DriverDetails::BUG_BROKENCENTROID) ? "out" : "centroid out" - - , v==GLSLES3 ? "" : v<=GLSL_130 ? "#extension GL_ARB_texture_rectangle : enable" : "#define texture2DRect texture" - , v==GLSLES3 ? "#define texture2DRect(samp, uv) texelFetch(samp, ivec2(floor(uv)), 0)" : "" - , v==GLSLES3 ? "#define sampler2DRect sampler2D" : "" ); } |
