diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-08-30 19:28:33 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-08-30 20:59:07 +0300 |
commit | 480def9c5587b710ce478a58985e2e4359c14467 (patch) | |
tree | 14749342b7010c562222bcb48058a87747c0df03 /intern/opencolorio/gpu_shader_display_transform.glsl | |
parent | 17f26e181febbc72b873131c40bea6d508264641 (diff) |
Fix T52591: OpenColorIO not working correct with OpenGL core profile on macOS.
Also remove textureSize() replacement code, is always supported now.
Diffstat (limited to 'intern/opencolorio/gpu_shader_display_transform.glsl')
-rw-r--r-- | intern/opencolorio/gpu_shader_display_transform.glsl | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/intern/opencolorio/gpu_shader_display_transform.glsl b/intern/opencolorio/gpu_shader_display_transform.glsl index ae0c524300d..f1dca04b823 100644 --- a/intern/opencolorio/gpu_shader_display_transform.glsl +++ b/intern/opencolorio/gpu_shader_display_transform.glsl @@ -5,11 +5,6 @@ uniform sampler3D lut3d_texture; uniform float dither; #endif -#ifdef USE_TEXTURE_SIZE -uniform float image_texture_width; -uniform float image_texture_height; -#endif - in vec2 texCoord_interp; out vec4 fragColor; @@ -122,11 +117,7 @@ float dither_random_value(vec2 co) vec2 round_to_pixel(vec2 st) { vec2 result; -#ifdef USE_TEXTURE_SIZE - vec2 size = vec2(image_texture_width, image_texture_height); -#else vec2 size = textureSize(image_texture, 0); -#endif result.x = float(int(st.x * size.x)) / size.x; result.y = float(int(st.y * size.y)) / size.y; return result; |