Commit 08e4e39f authored by wiebel's avatar wiebel
Browse files

[FIX] made compile with glew and GL also on windows

parent 0d722391
......@@ -38,6 +38,7 @@ BGLScenePainter::~BGLScenePainter()
void BGLScenePainter::initGL() const
{
GLenum glewError = glewInit();
GLenum error = glGetError();
assert( error == GL_NO_ERROR );
......
# Package dependencies:
FIND_PACKAGE( GLEW REQUIRED )
FIND_PACKAGE( OpenGL REQUIRED )
# Includes:
INCLUDE_DIRECTORIES( ${GLEW_INCLUDE_PATH} )
INCLUDE_DIRECTORIES( ${OPENGL_INCLUDE_PATH} )
FILE(GLOB GE_SRC "*.cpp")
ADD_LIBRARY( ge SHARED ${GE_SRC} )
TARGET_LINK_LIBRARIES( ge ${GLEW_LIBRARY} )
TARGET_LINK_LIBRARIES( ge ${GLEW_LIBRARY} ${OPENGL_LIBRARY} )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment