Revert "GLES2: Ensure extension checks for texture2DLod"
This reverts commit f5f565e3e4
.
This commit is contained in:
parent
4cdb2d0502
commit
764671d2d0
@ -220,6 +220,29 @@ VERTEX_SHADER_CODE
|
||||
/* clang-format off */
|
||||
[fragment]
|
||||
|
||||
#ifndef USE_GLES_OVER_GL
|
||||
|
||||
#ifdef GL_EXT_shader_texture_lod
|
||||
#extension GL_EXT_shader_texture_lod : enable
|
||||
#define texture2DLod(img, coord, lod) texture2DLodEXT(img, coord, lod)
|
||||
#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
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef USE_GLES_OVER_GL
|
||||
#define lowp
|
||||
#define mediump
|
||||
|
@ -26,12 +26,14 @@ void main() {
|
||||
[fragment]
|
||||
|
||||
#ifndef USE_GLES_OVER_GL
|
||||
|
||||
#ifdef GL_EXT_shader_texture_lod
|
||||
#extension GL_EXT_shader_texture_lod : enable
|
||||
#define texture2DLod(img, coord, lod) texture2DLodEXT(img, coord, lod)
|
||||
#define textureCubeLod(img, coord, lod) textureCubeLodEXT(img, coord, lod)
|
||||
#endif
|
||||
#endif // !USE_GLES_OVER_GL
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef GL_ARB_shader_texture_lod
|
||||
#extension GL_ARB_shader_texture_lod : enable
|
||||
@ -42,6 +44,8 @@ void main() {
|
||||
#define textureCubeLod(img, coord, lod) textureCube(img, coord, lod)
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#ifdef USE_GLES_OVER_GL
|
||||
#define lowp
|
||||
#define mediump
|
||||
@ -54,7 +58,8 @@ precision highp int;
|
||||
precision mediump float;
|
||||
precision mediump int;
|
||||
#endif
|
||||
#endif // USE_GLES_OVER_GL
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef USE_SOURCE_PANORAMA
|
||||
uniform sampler2D source_panorama; //texunit:0
|
||||
|
@ -16,6 +16,7 @@ precision highp int;
|
||||
|
||||
#define M_PI 3.14159265359
|
||||
|
||||
|
||||
//
|
||||
// attributes
|
||||
//
|
||||
@ -675,12 +676,14 @@ VERTEX_SHADER_CODE
|
||||
[fragment]
|
||||
|
||||
#ifndef USE_GLES_OVER_GL
|
||||
|
||||
#ifdef GL_EXT_shader_texture_lod
|
||||
#extension GL_EXT_shader_texture_lod : enable
|
||||
#define texture2DLod(img, coord, lod) texture2DLodEXT(img, coord, lod)
|
||||
#define textureCubeLod(img, coord, lod) textureCubeLodEXT(img, coord, lod)
|
||||
#endif
|
||||
#endif // !USE_GLES_OVER_GL
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef GL_ARB_shader_texture_lod
|
||||
#extension GL_ARB_shader_texture_lod : enable
|
||||
@ -691,6 +694,9 @@ VERTEX_SHADER_CODE
|
||||
#define textureCubeLod(img, coord, lod) textureCube(img, coord, lod)
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef USE_GLES_OVER_GL
|
||||
#define lowp
|
||||
#define mediump
|
||||
@ -703,7 +709,7 @@ precision highp int;
|
||||
precision mediump float;
|
||||
precision mediump int;
|
||||
#endif
|
||||
#endif // USE_GLES_OVER_GL
|
||||
#endif
|
||||
|
||||
#include "stdlib.glsl"
|
||||
|
||||
|
@ -1,19 +1,3 @@
|
||||
#ifndef USE_GLES_OVER_GL
|
||||
#ifdef GL_EXT_shader_texture_lod
|
||||
#extension GL_EXT_shader_texture_lod : enable
|
||||
#define texture2DLod(img, coord, lod) texture2DLodEXT(img, coord, lod)
|
||||
#define textureCubeLod(img, coord, lod) textureCubeLodEXT(img, coord, lod)
|
||||
#endif
|
||||
#endif // !USE_GLES_OVER_GL
|
||||
|
||||
#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
|
||||
|
||||
vec2 select2(vec2 a, vec2 b, bvec2 c) {
|
||||
vec2 ret;
|
||||
|
Loading…
Reference in New Issue
Block a user