Commit 39cf6389 by John Kessenich

Include GL_FRAGMENT_PRECISION_HIGH in ES 300/310.

parent 39805bb3
...@@ -149,6 +149,9 @@ uniform mediump; // ERROR ...@@ -149,6 +149,9 @@ uniform mediump; // ERROR
layout(early_fragment_tests) in; // ERROR layout(early_fragment_tests) in; // ERROR
#ifndef GL_FRAGMENT_PRECISION_HIGH
#error missing GL_FRAGMENT_PRECISION_HIGH
#endif
float imageBuffer; // ERROR, reserved float imageBuffer; // ERROR, reserved
float uimage2DRect; // ERROR, reserved float uimage2DRect; // ERROR, reserved
...@@ -36,8 +36,8 @@ ERROR: 0:129: 'texel offset' : value is out of range: [gl_MinProgramTexelOffset, ...@@ -36,8 +36,8 @@ ERROR: 0:129: 'texel offset' : value is out of range: [gl_MinProgramTexelOffset,
ERROR: 0:129: 'texel offset' : value is out of range: [gl_MinProgramTexelOffset, gl_MaxProgramTexelOffset] ERROR: 0:129: 'texel offset' : value is out of range: [gl_MinProgramTexelOffset, gl_MaxProgramTexelOffset]
ERROR: 0:148: 'qualifier' : cannot use auxiliary, memory, interpolation, or precision qualifier in a default qualifier declaration (declaration with no type) ERROR: 0:148: 'qualifier' : cannot use auxiliary, memory, interpolation, or precision qualifier in a default qualifier declaration (declaration with no type)
ERROR: 0:150: 'early_fragment_tests' : not supported for this version or the enabled extensions ERROR: 0:150: 'early_fragment_tests' : not supported for this version or the enabled extensions
ERROR: 0:152: 'imageBuffer' : Reserved word. ERROR: 0:156: 'imageBuffer' : Reserved word.
ERROR: 0:152: '' : syntax error ERROR: 0:156: '' : syntax error
ERROR: 39 compilation errors. No code generated. ERROR: 39 compilation errors. No code generated.
......
...@@ -178,7 +178,6 @@ void TParseContext::initializeExtensionBehavior() ...@@ -178,7 +178,6 @@ void TParseContext::initializeExtensionBehavior()
const char* TParseContext::getPreamble() const char* TParseContext::getPreamble()
{ {
if (profile == EEsProfile) { if (profile == EEsProfile) {
if (version == 100) {
return return
"#define GL_ES 1\n" "#define GL_ES 1\n"
"#define GL_FRAGMENT_PRECISION_HIGH 1\n" "#define GL_FRAGMENT_PRECISION_HIGH 1\n"
...@@ -190,16 +189,6 @@ const char* TParseContext::getPreamble() ...@@ -190,16 +189,6 @@ const char* TParseContext::getPreamble()
; ;
} else { } else {
return return
"#define GL_ES 1\n"
"#define GL_OES_texture_3D 1\n"
"#define GL_OES_standard_derivatives 1\n"
"#define GL_EXT_frag_depth 1\n"
"#define GL_OES_EGL_image_external 1\n"
"#define GL_EXT_shader_texture_lod 1\n"
;
}
} else {
return
"#define GL_FRAGMENT_PRECISION_HIGH 1\n" "#define GL_FRAGMENT_PRECISION_HIGH 1\n"
"#define GL_ARB_texture_rectangle 1\n" "#define GL_ARB_texture_rectangle 1\n"
"#define GL_ARB_shading_language_420pack 1\n" "#define GL_ARB_shading_language_420pack 1\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment