[waffle] [PATCH] glx: fix attrib list end token

Jordan Justen jordan.l.justen at intel.com
Mon Jul 30 13:01:12 PDT 2012


It seems this list should be terminated by 0 rather than GLX_NONE.

http://www.opengl.org/registry/specs/ARB/glx_create_context.txt
"<attrib_list> specifies a list of attributes for the context.
 The list consists of a sequence of <name,value> pairs
 terminated by the value None (0)."

Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
 src/waffle/glx/glx_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/waffle/glx/glx_context.c b/src/waffle/glx/glx_context.c
index 85f8de1..1b09611 100644
--- a/src/waffle/glx/glx_context.c
+++ b/src/waffle/glx/glx_context.c
@@ -105,7 +105,7 @@ glx_context_fill_attrib_list(struct glx_config *config,
         }
     }
 
-    attrib_list[i++] = GLX_NONE;
+    attrib_list[i++] = 0;
     return true;
 }
 
-- 
1.7.11.1



More information about the waffle mailing list