Cleaned up half-float stuff.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 21 Dec 2011 04:10:58 -0500
changeset 1073 6eccf031c7e6
parent 1072 3400f252c4e0
child 1074 3fdc7cbd0c37
Cleaned up half-float stuff.
mojoshader_opengl.c
--- a/mojoshader_opengl.c	Wed Dec 21 04:10:42 2011 -0500
+++ b/mojoshader_opengl.c	Wed Dec 21 04:10:58 2011 -0500
@@ -37,8 +37,12 @@
 #include "GL/gl.h"
 #include "GL/glext.h"
 
-#ifndef GL_HALF_FLOAT
-#define GL_HALF_FLOAT 0x140B
+#ifndef GL_HALF_FLOAT_NV
+#define GL_HALF_FLOAT_NV 0x140B
+#endif
+
+#ifndef GL_HALF_FLOAT_ARB
+#define GL_HALF_FLOAT_ARB 0x140B
 #endif
 
 #ifndef GL_HALF_FLOAT_OES
@@ -2139,9 +2143,9 @@
             if (ctx->have_GL_NV_half_float)
                 return GL_HALF_FLOAT_NV;
             else if (ctx->have_GL_ARB_half_float_vertex)
-                return GL_HALF_FLOAT;
+                return GL_HALF_FLOAT_ARB;
             else if (ctx->have_GL_OES_vertex_half_float)
-                return GL_HALF_FLOAT;
+                return GL_HALF_FLOAT_OES;
             break;
     } // switch