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;