From dec7875a6e23212021e4d9080330a42832dfe02a Mon Sep 17 00:00:00 2001
From: Edward Rudd <urkle@outoforder.cc>
Date: Tue, 15 Jun 2021 01:40:19 +0000
Subject: [PATCH] update SDL soruce to 2.0.14
---
source/src/video/windows/SDL_windowsopengles.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/source/src/video/windows/SDL_windowsopengles.c b/source/src/video/windows/SDL_windowsopengles.c
index 879448c..5ee46d8 100644
--- a/source/src/video/windows/SDL_windowsopengles.c
+++ b/source/src/video/windows/SDL_windowsopengles.c
@@ -25,7 +25,6 @@
#include "SDL_windowsvideo.h"
#include "SDL_windowsopengles.h"
#include "SDL_windowsopengl.h"
-#include "SDL_log.h"
/* EGL implementation of SDL OpenGL support */
@@ -108,12 +107,13 @@
SDL_Window *current_win = SDL_GL_GetCurrentWindow();
SDL_GLContext current_ctx = SDL_GL_GetCurrentContext();
-
if (_this->egl_data == NULL) {
+ SDL_assert(!_this->gl_config.driver_loaded);
if (SDL_EGL_LoadLibrary(_this, NULL, EGL_DEFAULT_DISPLAY, 0) < 0) {
SDL_EGL_UnloadLibrary(_this);
return -1;
}
+ _this->gl_config.driver_loaded = 1;
}
/* Create the GLES window surface */
--
Gitblit v1.9.3