mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
ignore GLEW_ERROR_NO_GLX_DISPLAY (issue #240)
This commit is contained in:
parent
512732dcb4
commit
fc34ca6875
1 changed files with 8 additions and 2 deletions
|
|
@ -144,10 +144,16 @@ int Window::initialize(DisplaySettings* settings){
|
|||
glfwMakeContextCurrent(window);
|
||||
|
||||
glewExperimental = GL_TRUE;
|
||||
|
||||
GLenum glewErr = glewInit();
|
||||
if (glewErr != GLEW_OK){
|
||||
logger.error() << "failed to initialize GLEW:\n" << glewGetErrorString(glewErr);
|
||||
return -1;
|
||||
if (glewErr == GLEW_ERROR_NO_GLX_DISPLAY) {
|
||||
// see issue #240
|
||||
logger.warning() << "glewInit() returned GLEW_ERROR_NO_GLX_DISPLAY; ignored";
|
||||
} else {
|
||||
logger.error() << "failed to initialize GLEW:\n" << glewGetErrorString(glewErr);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
glViewport(0,0, width, height);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue