mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
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
This commit is contained in:
parent
8206978b8a
commit
2751ea0c5d
1 changed files with 3 additions and 0 deletions
|
@ -8184,6 +8184,9 @@ int32_t setgamemode(char davidoption, int32_t daxdim, int32_t daydim, int32_t da
|
||||||
j = bpp;
|
j = bpp;
|
||||||
|
|
||||||
if (setvideomode(daxdim,daydim,dabpp,davidoption) < 0) return(-1);
|
if (setvideomode(daxdim,daydim,dabpp,davidoption) < 0) return(-1);
|
||||||
|
|
||||||
|
// Workaround possible bugs in the GL driver
|
||||||
|
makeasmwriteable();
|
||||||
|
|
||||||
#if defined(POLYMOST) && defined(USE_OPENGL)
|
#if defined(POLYMOST) && defined(USE_OPENGL)
|
||||||
if (dabpp > 8) rendmode = glrendmode; // GL renderer
|
if (dabpp > 8) rendmode = glrendmode; // GL renderer
|
||||||
|
|
Loading…
Reference in a new issue