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

Rafal Mielniczuk rafal.mielniczuk2 at gmail.com
Wed Feb 26 10:34:43 PST 2014


Signed-off-by: Rafal Mielniczuk <rafal.mielniczuk2 at gmail.com>
---
 src/glsl/glcpp/glcpp-parse.y | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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) {
-- 
1.9.0



More information about the mesa-dev mailing list