diff --git a/gb.sdl/configure.ac b/gb.sdl/configure.ac index cd2e16019..73b032550 100644 --- a/gb.sdl/configure.ac +++ b/gb.sdl/configure.ac @@ -26,7 +26,7 @@ GB_COMPONENT( [src], [GB_FIND(SDL_opengl.h SDL.h SDL_ttf.h, `sdl-config --prefix`, include/SDL)], [GB_FIND(libSDL_ttf.$SHLIBEXT libGLEW.$SHLIBEXT, /usr /usr/X11R6 /usr/local `sdl-config --prefix`, lib)], - [$X_LIBS -lSDL_ttf -lGLU -lGLEW], + [$X_LIBS -lSDL_ttf -lGLEW], [$SDL_CFLAGS]) AC_OUTPUT( \ diff --git a/gb.sdl/src/Cwindow.cpp b/gb.sdl/src/Cwindow.cpp index cbcca0cfc..e385741eb 100644 --- a/gb.sdl/src/Cwindow.cpp +++ b/gb.sdl/src/Cwindow.cpp @@ -374,13 +374,10 @@ void myWin::Open(void) glViewport(0, 0, this->GetWidth(), this->GetHeight()); glMatrixMode(GL_PROJECTION); glLoadIdentity(); - gluOrtho2D(0.0f, GLdouble(this->GetWidth()), GLdouble(this->GetHeight()), 0.0f); + glOrtho(0.0f, GLdouble(this->GetWidth()), GLdouble(this->GetHeight()), 0.0f, -1, 1); // enable blending, should work like 2d sdl does glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - // enable anti-aliasing - glEnable(GL_POINT_SMOOTH); -// glEnable(GL_LINE_SMOOTH); glMatrixMode(GL_MODELVIEW); }