mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 13:31:49 +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);
|
glfwMakeContextCurrent(window);
|
||||||
|
|
||||||
glewExperimental = GL_TRUE;
|
glewExperimental = GL_TRUE;
|
||||||
|
|
||||||
GLenum glewErr = glewInit();
|
GLenum glewErr = glewInit();
|
||||||
if (glewErr != GLEW_OK){
|
if (glewErr != GLEW_OK){
|
||||||
logger.error() << "failed to initialize GLEW:\n" << glewGetErrorString(glewErr);
|
if (glewErr == GLEW_ERROR_NO_GLX_DISPLAY) {
|
||||||
return -1;
|
// 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);
|
glViewport(0,0, width, height);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue