move is_wine bool to g_config

This commit is contained in:
FunkyFr3sh 2023-11-04 03:20:30 +01:00
parent f79b7db8cd
commit e9b585f440
7 changed files with 15 additions and 13 deletions

View file

@ -4,6 +4,7 @@
#include "dd.h"
#include "debug.h"
#include "hook.h"
#include "config.h"
PFNWGLCREATECONTEXTPROC xwglCreateContext;
PFNWGLDELETECONTEXTPROC xwglDeleteContext;
@ -211,7 +212,7 @@ void oglu_init()
glEnableVertexAttribArray && glUniform2fv && glUniformMatrix4fv && glGenVertexArrays && glBindVertexArray &&
glGetUniformLocation;
if (g_ddraw->wine && glversion && glversion[0] == '2') // macOS
if (g_config.is_wine && glversion && glversion[0] == '2') // macOS
{
g_oglu_got_version3 = FALSE;
wglCreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC)xwglGetProcAddress("wglCreateContextAttribsARB");