this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Moved initial read of GL drawable size to after we have a GL context. Thanks Eric Wing!

+7 -4
+7 -4
src/renderer_GL_common.inl
··· 1061 1061 } 1062 1062 1063 1063 // Store the window info 1064 - SDL_GetWindowSize(window, &target->context->window_w, &target->context->window_h); 1065 - SDL_GL_GetDrawableSize(window, &target->context->drawable_w, &target->context->drawable_h); 1066 - target->context->stored_window_w = target->context->window_w; 1067 - target->context->stored_window_h = target->context->window_h; 1068 1064 target->context->windowID = SDL_GetWindowID(window); 1069 1065 1070 1066 // Make a new context if needed and make it current ··· 1073 1069 target->context->context = SDL_GL_CreateContext(window); 1074 1070 GPU_AddWindowMapping(target); 1075 1071 } 1072 + 1073 + // Get window dimensions 1074 + SDL_GetWindowSize(window, &target->context->window_w, &target->context->window_h); 1075 + target->context->stored_window_w = target->context->window_w; 1076 + target->context->stored_window_h = target->context->window_h; 1077 + // We need a GL context before we can get the drawable size. 1078 + SDL_GL_GetDrawableSize(window, &target->context->drawable_w, &target->context->drawable_h); 1076 1079 1077 1080 #else 1078 1081