intermediate commit (glad not initializing correctly)

This commit is contained in:
fysx
2013-12-06 23:37:01 +01:00
parent ec2bf449e9
commit 2037378d6a
8 changed files with 155 additions and 19 deletions
@@ -135,6 +135,8 @@ void Graphics::setViewportSize(int width, int height)
bool Graphics::setMode(int width, int height)
{
SDL_Log ("Graphics::setMode %d,%d", width, height);
this->width = width;
this->height = height;
@@ -31,6 +31,8 @@
// C
#include <cstring>
#include <SDL.h>
namespace love
{
namespace graphics
@@ -52,8 +54,10 @@ bool OpenGL::initContext()
if (contextInitialized)
return true;
if (!gladLoadGL())
return false;
if (!gladLoadGL()) {
SDL_Log ("Initialization of OpenGL failed! Aborting!");
abort();
}
initOpenGLFunctions();
initVendor();