From 1feec43b436d31c42a4b5cf316d05320de6a2a48 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 26 Jan 2011 14:41:47 +0000 Subject: [PATCH] Oops, the fix was only for EGL --- panda/src/glxdisplay/glxGraphicsStateGuardian.cxx | 2 +- panda/src/wgldisplay/wglGraphicsStateGuardian.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/glxdisplay/glxGraphicsStateGuardian.cxx b/panda/src/glxdisplay/glxGraphicsStateGuardian.cxx index 0fdef503eb..081625d4b8 100644 --- a/panda/src/glxdisplay/glxGraphicsStateGuardian.cxx +++ b/panda/src/glxdisplay/glxGraphicsStateGuardian.cxx @@ -296,7 +296,7 @@ choose_pixel_format(const FrameBufferProperties &properties, int best_result = 0; FrameBufferProperties best_props; - static const int max_attrib_list = 256; + static const int max_attrib_list = 32; int attrib_list[max_attrib_list]; int n = 0; attrib_list[n++] = GLX_STEREO; diff --git a/panda/src/wgldisplay/wglGraphicsStateGuardian.cxx b/panda/src/wgldisplay/wglGraphicsStateGuardian.cxx index f8f3bebf8f..b15c467420 100755 --- a/panda/src/wgldisplay/wglGraphicsStateGuardian.cxx +++ b/panda/src/wgldisplay/wglGraphicsStateGuardian.cxx @@ -166,7 +166,7 @@ bool wglGraphicsStateGuardian:: get_properties_advanced(FrameBufferProperties &properties, HDC window_dc, int pfnum) { - static const int max_attrib_list = 256; + static const int max_attrib_list = 32; int iattrib_list[max_attrib_list]; int ivalue_list[max_attrib_list]; int ni = 0;