Ignore:
Timestamp:
Aug 2, 2011, 2:27:12 AM (10 years ago)
Author:
sam
Message:

gl: use Glew if available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sdlapp.cpp

    r755 r796  
    1818
    1919#include "core.h"
     20#include "lolgl.h"
    2021#include "sdlapp.h"
    2122
     
    5960        exit(EXIT_FAILURE);
    6061    }
     62#if defined USE_GLEW
     63    GLenum glerr = glewInit();
     64    if (glerr != GLEW_OK)
     65    {
     66        Log::Error("cannot initialise GLEW: %s\n", glewGetErrorString(glerr));
     67        SDL_Quit();
     68        exit(EXIT_FAILURE);
     69    }
     70#endif
    6171
    6272    SDL_WM_SetCaption(title, NULL);
Note: See TracChangeset for help on using the changeset viewer.