Fix problem with texture2Dlod, closes #25263
This commit is contained in:
parent
2c9536b655
commit
2d57ec2460
3 changed files with 10 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue