[Mesa-dev,2/5] glsl: Define GL_NV_non_square_matrices in an OpenGL ES shader

Submitted by Rafal Mielniczuk on Feb. 26, 2014, 6:34 p.m.

Details

Message ID 1393439686-29817-3-git-send-email-rafal.mielniczuk2@gmail.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Rafal Mielniczuk Feb. 26, 2014, 6:34 p.m.
Signed-off-by: Rafal Mielniczuk <rafal.mielniczuk2@gmail.com>
---
 src/glsl/glcpp/glcpp-parse.y | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y
index bdc598f..da89046 100644
--- a/src/glsl/glcpp/glcpp-parse.y
+++ b/src/glsl/glcpp/glcpp-parse.y
@@ -2062,6 +2062,7 @@  _glcpp_parser_handle_version_declaration(glcpp_parser_t *parser, intmax_t versio
 	/* Add pre-defined macros. */
 	if (parser->is_gles) {
 	   add_builtin_define(parser, "GL_ES", 1);
+	   add_builtin_define(parser, "GL_NV_non_square_matrices", 1);
 
 	   if (extensions != NULL) {
 	      if (extensions->OES_EGL_image_external)
@@ -2070,7 +2071,7 @@  _glcpp_parser_handle_version_declaration(glcpp_parser_t *parser, intmax_t versio
 	} else {
 	   add_builtin_define(parser, "GL_ARB_draw_buffers", 1);
 	   add_builtin_define(parser, "GL_ARB_texture_rectangle", 1);
-           add_builtin_define(parser, "GL_AMD_shader_trinary_minmax", 1);
+	   add_builtin_define(parser, "GL_AMD_shader_trinary_minmax", 1);
 
 
 	   if (extensions != NULL) {