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) #define textureCubeLod(img, coord, lod) textureCubeLodEXT(img, coord, lod)
#endif #endif
#endif
#ifdef GL_ARB_shader_texture_lod #ifdef GL_ARB_shader_texture_lod
#extension GL_ARB_shader_texture_lod : enable #extension GL_ARB_shader_texture_lod : enable
#endif #endif
#if !defined(GL_EXT_shader_texture_lod) && !defined(GL_ARB_shader_texture_lod) #if !defined(GL_EXT_shader_texture_lod) && !defined(GL_ARB_shader_texture_lod)
#define texture2DLod(img, coord, lod) texture2D(img, coord, lod) #define texture2DLod(img, coord, lod) texture2D(img, coord, lod)
#define textureCubeLod(img, coord, lod) textureCube(img, coord, lod) #define textureCubeLod(img, coord, lod) textureCube(img, coord, lod)
#endif #endif
#endif
#ifdef USE_GLES_OVER_GL #ifdef USE_GLES_OVER_GL

View file

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

View file

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