Skip to content

Commit d224a87

Browse files
authored
Merge pull request #1302 from asarium/fix/openglInitError
Extend display device initialization error
2 parents 9d7c5a2 + 78df244 commit d224a87

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

code/graphics/opengl/gropengl.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,10 @@ bool gr_opengl_init(std::unique_ptr<os::GraphicsOperations>&& graphicsOps)
14621462
graphic_operations = std::move(graphicsOps);
14631463

14641464
if ( opengl_init_display_device() ) {
1465-
Error(LOCATION, "Unable to initialize display device!\n");
1465+
Error(LOCATION, "Unable to initialize display device!\n"
1466+
"This most likely means that your graphics drivers do not support the minimum required OpenGL version which is %d.%d.\n",
1467+
(MIN_REQUIRED_GL_VERSION / 10),
1468+
(MIN_REQUIRED_GL_VERSION % 10));
14661469
}
14671470

14681471
// Initialize function pointers

0 commit comments

Comments
 (0)