mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 03:25:14 -04:00
Windows: Fix crashing when running in OpenGL 1.1 fallback mode and you enable mipmaps (Thanks popgoesme700)
This commit is contained in:
parent
cfb6f11dfe
commit
86f7d7c3fa
@ -546,6 +546,7 @@ static void OpenGL11Fallback(void) {
|
||||
"Your system only supports only OpenGL 1.1\n" \
|
||||
"This is usually caused by graphics drivers not being installed\n\n" \
|
||||
"As such you will likely experience very poor performance");
|
||||
customMipmapsLevels = false;
|
||||
|
||||
_glBindBuffer = fake_bindBuffer; _glDeleteBuffers = fake_deleteBuffers;
|
||||
_glGenBuffers = fake_genBuffers; _glBufferData = fake_bufferData;
|
||||
@ -582,6 +583,7 @@ static void GLBackend_Init(void) {
|
||||
#ifdef CC_BUILD_WIN
|
||||
LoadCoreFuncs();
|
||||
#endif
|
||||
customMipmapsLevels = true;
|
||||
|
||||
/* Supported in core since 1.5 */
|
||||
if (major > 1 || (major == 1 && minor >= 5)) {
|
||||
@ -591,7 +593,6 @@ static void GLBackend_Init(void) {
|
||||
} else {
|
||||
OpenGL11Fallback();
|
||||
}
|
||||
customMipmapsLevels = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user