add glext.h, remove GLU dependency

This commit is contained in:
Eduardo Bart
2011-11-22 22:21:33 -02:00
parent b50cb35734
commit 18c122c71e
4 changed files with 11491 additions and 7 deletions

View File

@@ -26,8 +26,7 @@
#include <framework/graphics/texture.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glext.h>
#include <framework/thirdparty/glext.h>
Graphics g_graphics;
@@ -113,7 +112,7 @@ void Graphics::restoreViewport()
// setup view region like above
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluOrtho2D(0.0f, width, height, 0.0f);
glOrtho(0.0f, width, height, 0.0f, -1, 1);
// back to model view
glMatrixMode(GL_MODELVIEW);