|
@@ -434,12 +434,6 @@ int la_CreateSystemWindow(laWindow *window, int SyncToVBlank){
|
|
#ifdef _WIN32
|
|
#ifdef _WIN32
|
|
la_SetupGLEnviornment(window, hwnd, SyncToVBlank);
|
|
la_SetupGLEnviornment(window, hwnd, SyncToVBlank);
|
|
|
|
|
|
-
|
|
|
|
- glEnable(GL_DEBUG_OUTPUT);
|
|
|
|
- glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS);
|
|
|
|
- glDebugMessageCallback(glDebugOutput, 0);
|
|
|
|
- glDebugMessageControl(GL_DONT_CARE, GL_DEBUG_TYPE_ERROR, GL_DONT_CARE, 0, 0, GL_TRUE);
|
|
|
|
-
|
|
|
|
RECT rc; GetClientRect(window->win, &rc);
|
|
RECT rc; GetClientRect(window->win, &rc);
|
|
window->CW = rc.right - rc.left;
|
|
window->CW = rc.right - rc.left;
|
|
window->CH = rc.bottom - rc.top;
|
|
window->CH = rc.bottom - rc.top;
|
|
@@ -451,6 +445,12 @@ int la_CreateSystemWindow(laWindow *window, int SyncToVBlank){
|
|
window->CH = attr.height;
|
|
window->CH = attr.height;
|
|
window->glc = glc;
|
|
window->glc = glc;
|
|
#endif
|
|
#endif
|
|
|
|
+
|
|
|
|
+ glEnable(GL_DEBUG_OUTPUT);
|
|
|
|
+ glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS);
|
|
|
|
+ glDebugMessageCallback(glDebugOutput, 0);
|
|
|
|
+ glDebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, 0, GL_TRUE);
|
|
|
|
+
|
|
return 1;
|
|
return 1;
|
|
};
|
|
};
|
|
|
|
|