Fix problem with texture2Dlod, closes #25263

This commit is contained in:
Juan Linietsky 2019-01-23 17:06:37 -03:00
parent 2c9536b655
commit 2d57ec2460
3 changed files with 10 additions and 3 deletions

View File

@ -223,16 +223,19 @@ VERTEX_SHADER_CODE
#define textureCubeLod(img, coord, lod) textureCubeLodEXT(img, coord, lod)
#endif
#endif
#ifdef GL_ARB_shader_texture_lod
#extension GL_ARB_shader_texture_lod : enable
#endif
#if !defined(GL_EXT_shader_texture_lod) && !defined(GL_ARB_shader_texture_lod)
#define texture2DLod(img, coord, lod) texture2D(img, coord, lod)
#define textureCubeLod(img, coord, lod) textureCube(img, coord, lod)
#endif
#endif
#ifdef USE_GLES_OVER_GL

View File

@ -33,6 +33,8 @@ void main() {
#define textureCubeLod(img, coord, lod) textureCubeLodEXT(img, coord, lod)
#endif
#endif
#ifdef GL_ARB_shader_texture_lod
#extension GL_ARB_shader_texture_lod : enable
#endif
@ -42,7 +44,7 @@ void main() {
#define textureCubeLod(img, coord, lod) textureCube(img, coord, lod)
#endif
#endif
#ifdef USE_GLES_OVER_GL
#define lowp

View File

@ -664,6 +664,8 @@ VERTEX_SHADER_CODE
#define textureCubeLod(img, coord, lod) textureCubeLodEXT(img, coord, lod)
#endif
#endif
#ifdef GL_ARB_shader_texture_lod
#extension GL_ARB_shader_texture_lod : enable
#endif
@ -673,7 +675,7 @@ VERTEX_SHADER_CODE
#define textureCubeLod(img, coord, lod) textureCube(img, coord, lod)
#endif
#endif
#ifdef USE_GLES_OVER_GL