Detect GLSL vs GLSL ES support in OpenGL 1.x -
i'm writing using glsl , shader objects in opengl versions before core 2.0. source code detects opengl version below 2.0 , checks gl_arb_shading_language_100 support. if supported assumes gl_arb_shader_objects, gl_arb_vertex_shader, , gl_arb_fragment_shader supported.
i've noticed assumption means glsl 1 supported wrong because glsl es 1.2 supported , shader source code fails compile (lack of 3d texture support). glgetstring(gl_shading_language_version_arb) unhelpful (returns 1.20) , isn't documented helpful.
is there way detect if glsl es supported through extensions?
Comments
Post a Comment