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