Skip to content

Commit ebf7edd

Browse files
authored
Merge pull request #3059 from Starbuck5/fix-imposter-opengl
Fix imposter opengl
2 parents 0fb59bf + 75fb65a commit ebf7edd

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)