Removed bitfields for full ints.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 02 Dec 2008 06:20:53 -0500
changeset 463 6f3a82d7e3d2
parent 462 af8c1ff58453
child 464 eba4cf79437f
Removed bitfields for full ints. Raymond Chen shamed me into it: http://blogs.msdn.com/oldnewthing/archive/2008/11/26/9143050.aspx
mojoshader.c
mojoshader_opengl.c
--- a/mojoshader.c	Mon Dec 01 17:55:58 2008 -0500
+++ b/mojoshader.c	Tue Dec 02 06:20:53 2008 -0500
@@ -420,15 +420,15 @@
     int sampler_count;
     RegisterList samplers;
     VariableList *variables;  // variables to register mapping.
-    int centroid_allowed:1;
-    int have_ctab:1;
-    int determined_constants_arrays:1;
-    int predicated:1;
-    int support_nv2:1;
-    int support_nv3:1;
-    int support_nv4:1;
-    int support_glsl120:1;
-    int glsl_generated_lit_opcode:1;
+    int centroid_allowed;
+    int have_ctab;
+    int determined_constants_arrays;
+    int predicated;
+    int support_nv2;
+    int support_nv3;
+    int support_nv4;
+    int support_glsl120;
+    int glsl_generated_lit_opcode;
 };
 
 
--- a/mojoshader_opengl.c	Mon Dec 01 17:55:58 2008 -0500
+++ b/mojoshader_opengl.c	Tue Dec 02 06:20:53 2008 -0500
@@ -154,20 +154,20 @@
     char profile[16];
 
     // Extensions...
-    int have_base_opengl:1;
-    int have_GL_ARB_vertex_program:1;
-    int have_GL_ARB_fragment_program:1;
-    int have_GL_NV_vertex_program2_option:1;
-    int have_GL_NV_fragment_program2:1;
-    int have_GL_NV_vertex_program3:1;
-    int have_GL_NV_gpu_program4:1;
-    int have_GL_ARB_shader_objects:1;
-    int have_GL_ARB_vertex_shader:1;
-    int have_GL_ARB_fragment_shader:1;
-    int have_GL_ARB_shading_language_100:1;
-    int have_GL_NV_half_float:1;
-    int have_GL_ARB_half_float_vertex:1;
-    int have_GL_OES_vertex_half_float:1;
+    int have_base_opengl;
+    int have_GL_ARB_vertex_program;
+    int have_GL_ARB_fragment_program;
+    int have_GL_NV_vertex_program2_option;
+    int have_GL_NV_fragment_program2;
+    int have_GL_NV_vertex_program3;
+    int have_GL_NV_gpu_program4;
+    int have_GL_ARB_shader_objects;
+    int have_GL_ARB_vertex_shader;
+    int have_GL_ARB_fragment_shader;
+    int have_GL_ARB_shading_language_100;
+    int have_GL_NV_half_float;
+    int have_GL_ARB_half_float_vertex;
+    int have_GL_OES_vertex_half_float;
 
     // Entry points...
     PFNGLGETSTRINGPROC glGetString;