first working build

This commit is contained in:
Martin Felis
2013-12-08 01:10:14 +01:00
parent e754a35421
commit 453032fbdb
8 changed files with 16 additions and 154 deletions
@@ -135,8 +135,6 @@ 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,8 +31,6 @@
// C
#include <cstring>
#include <SDL.h>
namespace love
{
namespace graphics
@@ -54,10 +52,8 @@ bool OpenGL::initContext()
if (contextInitialized)
return true;
if (!gladLoadGL()) {
SDL_Log ("Initialization of OpenGL failed! Aborting!");
abort();
}
if (!gladLoadGL())
return false;
initOpenGLFunctions();
initVendor();