Migrate OpenGL cache and texture handler to GL pointers

this makes the OpenGL 3 driver free of GL symbol references!
This commit is contained in:
sfan5
2024-01-16 20:17:33 +01:00
parent 7241a49566
commit 52e4d72ae2
4 changed files with 59 additions and 73 deletions

View File

@@ -44,6 +44,7 @@ bool COpenGLDriver::initDriver()
ContextManager->generateContext();
ExposedData = ContextManager->getContext();
ContextManager->activateContext(ExposedData, false);
GL.LoadAllProcedures(ContextManager);
genericDriverInit();
@@ -51,8 +52,6 @@ bool COpenGLDriver::initDriver()
extGlSwapInterval(Params.Vsync ? 1 : 0);
#endif
GL.LoadAllProcedures(ContextManager);
return true;
}