Clarify an odd design choice
This commit is contained in:
parent
a8bcf5a6fb
commit
1eb1e522c8
1 changed files with 2 additions and 0 deletions
|
@ -34,6 +34,8 @@ bool WindowBackend_OpenGL_CreateWindow(const char *window_title, size_t *screen_
|
||||||
|
|
||||||
if (monitor != NULL)
|
if (monitor != NULL)
|
||||||
{
|
{
|
||||||
|
// Use current monitor resolution, because for some reason
|
||||||
|
// 640x480 causes my laptop to completely freeze on Linux.
|
||||||
const GLFWvidmode *mode = glfwGetVideoMode(monitor);
|
const GLFWvidmode *mode = glfwGetVideoMode(monitor);
|
||||||
|
|
||||||
*screen_width = mode->width;
|
*screen_width = mode->width;
|
||||||
|
|
Loading…
Add table
Reference in a new issue