From 2751ea0c5dd51af2e3f92d47a256489751e4257a Mon Sep 17 00:00:00 2001 From: plagman Date: Mon, 8 Nov 2010 04:56:10 +0000 Subject: [PATCH] Works around a bug with newer NVIDIA GL drivers where creating a GL context would remove write access to our code sections. bugs 3086185 and 3104646 git-svn-id: https://svn.eduke32.com/eduke32@1724 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/engine.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index ab30c7d27..3a7934c24 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -8184,6 +8184,9 @@ int32_t setgamemode(char davidoption, int32_t daxdim, int32_t daydim, int32_t da j = bpp; if (setvideomode(daxdim,daydim,dabpp,davidoption) < 0) return(-1); + + // Workaround possible bugs in the GL driver + makeasmwriteable(); #if defined(POLYMOST) && defined(USE_OPENGL) if (dabpp > 8) rendmode = glrendmode; // GL renderer