mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
Fix minor issue that has been limiting the number of framebuffer configurations to 32, severely limiting render functionality across the board.
This commit is contained in:
parent
71ddd9de3b
commit
bdf4591c3a
@ -82,7 +82,7 @@ get_properties(FrameBufferProperties &properties,
|
||||
properties.clear();
|
||||
|
||||
// Now update our framebuffer_mode and bit depth appropriately.
|
||||
int red_size, green_size, blue_size,
|
||||
EGLint red_size, green_size, blue_size,
|
||||
alpha_size,
|
||||
depth_size, stencil_size, samples, surface_type, caveat;
|
||||
|
||||
@ -167,8 +167,8 @@ choose_pixel_format(const FrameBufferProperties &properties,
|
||||
};
|
||||
|
||||
int num_configs = 0;
|
||||
EGLConfig configs[32];
|
||||
if (!eglChooseConfig(_egl_display, attrib_list, configs, 32, &num_configs) || num_configs <= 0) {
|
||||
EGLConfig configs[256];
|
||||
if (!eglChooseConfig(_egl_display, attrib_list, configs, 256, &num_configs) || num_configs <= 0) {
|
||||
egldisplay_cat.error() << "eglChooseConfig failed: "
|
||||
<< get_egl_error_string(eglGetError()) << "\n";
|
||||
return;
|
||||
|
@ -296,7 +296,7 @@ choose_pixel_format(const FrameBufferProperties &properties,
|
||||
int best_result = 0;
|
||||
FrameBufferProperties best_props;
|
||||
|
||||
static const int max_attrib_list = 32;
|
||||
static const int max_attrib_list = 256;
|
||||
int attrib_list[max_attrib_list];
|
||||
int n = 0;
|
||||
attrib_list[n++] = GLX_STEREO;
|
||||
|
@ -166,7 +166,7 @@ bool wglGraphicsStateGuardian::
|
||||
get_properties_advanced(FrameBufferProperties &properties,
|
||||
HDC window_dc, int pfnum) {
|
||||
|
||||
static const int max_attrib_list = 32;
|
||||
static const int max_attrib_list = 256;
|
||||
int iattrib_list[max_attrib_list];
|
||||
int ivalue_list[max_attrib_list];
|
||||
int ni = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user