mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-11 00:26:28 -04:00
EGL: Always log all attributes
This commit is contained in:
parent
18986b29f4
commit
398eceafca
@ -191,11 +191,16 @@ void GLContext_Create(void) {
|
|||||||
if (!numConfig) Window_ShowDialog("Warning", "Failed to choose EGL config, ClassiCube may be unable to start");
|
if (!numConfig) Window_ShowDialog("Warning", "Failed to choose EGL config, ClassiCube may be unable to start");
|
||||||
ChooseEGLConfig(configs, numConfig);
|
ChooseEGLConfig(configs, numConfig);
|
||||||
|
|
||||||
if (ctx_visualID) {
|
EGLint red, green, blue, alpha, depth, vid;
|
||||||
EGLint visualID = 0;
|
eglGetConfigAttrib(ctx_display, ctx_config, EGL_RED_SIZE, &red);
|
||||||
eglGetConfigAttrib(ctx_display, ctx_config, EGL_NATIVE_VISUAL_ID, &visualID);
|
eglGetConfigAttrib(ctx_display, ctx_config, EGL_GREEN_SIZE, &green);
|
||||||
Platform_Log1("EGL visual ID: %h", &visualID);
|
eglGetConfigAttrib(ctx_display, ctx_config, EGL_BLUE_SIZE, &blue);
|
||||||
}
|
eglGetConfigAttrib(ctx_display, ctx_config, EGL_ALPHA_SIZE, &alpha);
|
||||||
|
eglGetConfigAttrib(ctx_display, ctx_config, EGL_DEPTH_SIZE, &depth);
|
||||||
|
eglGetConfigAttrib(ctx_display, ctx_config, EGL_NATIVE_VISUAL_ID, &vid);
|
||||||
|
|
||||||
|
Platform_Log4("EGL R:%i, G:%i, B:%i, A:%i", &red, &green, &blue, &alpha);
|
||||||
|
Platform_Log2("EGL depth: %i, visual: %h", &depth, &vid);
|
||||||
|
|
||||||
ctx_context = eglCreateContext(ctx_display, ctx_config, EGL_NO_CONTEXT, context_attribs);
|
ctx_context = eglCreateContext(ctx_display, ctx_config, EGL_NO_CONTEXT, context_attribs);
|
||||||
if (!ctx_context) Process_Abort2(eglGetError(), "Failed to create EGL context");
|
if (!ctx_context) Process_Abort2(eglGetError(), "Failed to create EGL context");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user