Skip to content

Commit 75fb65a

Browse files
committed
Fix imposter opengl
1 parent 0fb59bf commit 75fb65a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src_c/window.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ window_init(pgWindowObject *self, PyObject *args, PyObject *kwargs)
995995
self->_is_borrowed = SDL_FALSE;
996996
self->surf = NULL;
997997

998-
if (SDL_GetWindowFlags(self->_win) & SDL_WINDOW_OPENGL) {
998+
if (flags & SDL_WINDOW_OPENGL) {
999999
SDL_GLContext context = SDL_GL_CreateContext(self->_win);
10001000
if (context == NULL) {
10011001
PyErr_SetString(pgExc_SDLError, SDL_GetError());

0 commit comments

Comments
 (0)