Fixed wrong type being passed to eglGetConfigAttrib() (thanks, Alexander!).
This wanted an EGLint*, not a VisualID* cast to an EGLint*. Without this, 64-bit X11 fails here, because the datatype sizes are different. Fixes Bugzilla 1686.
This commit is contained in:
parent
600c62cf30
commit
93f82137fd
1 changed files with 2 additions and 2 deletions
|
@ -212,7 +212,7 @@ X11_GLES_GetVisual(_THIS, Display * display, int screen)
|
||||||
/* 64 seems nice. */
|
/* 64 seems nice. */
|
||||||
EGLint attribs[64];
|
EGLint attribs[64];
|
||||||
EGLint found_configs = 0;
|
EGLint found_configs = 0;
|
||||||
VisualID visual_id;
|
EGLint visual_id;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (!_this->gles_data) {
|
if (!_this->gles_data) {
|
||||||
|
@ -277,7 +277,7 @@ X11_GLES_GetVisual(_THIS, Display * display, int screen)
|
||||||
if (_this->gles_data->eglGetConfigAttrib(_this->gles_data->egl_display,
|
if (_this->gles_data->eglGetConfigAttrib(_this->gles_data->egl_display,
|
||||||
_this->gles_data->egl_config,
|
_this->gles_data->egl_config,
|
||||||
EGL_NATIVE_VISUAL_ID,
|
EGL_NATIVE_VISUAL_ID,
|
||||||
(EGLint *) & visual_id) ==
|
&visual_id) ==
|
||||||
EGL_FALSE || !visual_id) {
|
EGL_FALSE || !visual_id) {
|
||||||
/* Use the default visual when all else fails */
|
/* Use the default visual when all else fails */
|
||||||
XVisualInfo vi_in;
|
XVisualInfo vi_in;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue