mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Fixed graphics initialization crashing love when OpenGL ES 2 is used.
--HG-- branch : minor
This commit is contained in:
@@ -139,7 +139,8 @@ void OpenGL::setupContext()
|
||||
state.lastProjectionMatrix.setTranslation(nan, nan);
|
||||
state.lastTransformMatrix.setTranslation(nan, nan);
|
||||
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
if (GLAD_VERSION_1_0)
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
|
||||
contextInitialized = true;
|
||||
}
|
||||
@@ -568,7 +569,6 @@ void OpenGL::setTextureFilter(graphics::Texture::Filter &f)
|
||||
gmin = GL_LINEAR;
|
||||
}
|
||||
|
||||
|
||||
switch (f.mag)
|
||||
{
|
||||
case Texture::FILTER_NEAREST:
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include <cstdio>
|
||||
|
||||
#ifdef LOVE_WINDOWS
|
||||
#include <Windows.h>
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#ifndef APIENTRY
|
||||
|
||||
Reference in New Issue
Block a user