Skip to content

Commit 2919056

Browse files
committed
Disable GLFW window resize
1 parent 3b15a07 commit 2919056

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

App/main.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -457,12 +457,6 @@ void InitData()
457457
g_cfgs[g_primary].renderer->Clear(float3(0, 0, 0), *g_outputs[g_primary].output);
458458
}
459459

460-
void Reshape(GLint w, GLint h)
461-
{
462-
// Disable window resize
463-
//glutReshapeWindow(g_window_width, g_window_height);
464-
}
465-
466460
void OnMouseMove(GLFWwindow* window, double x, double y)
467461
{
468462
if (g_is_mouse_tracking)
@@ -917,6 +911,7 @@ int main(int argc, char * argv[])
917911
}
918912
// Setup window
919913
glfwSetErrorCallback(OnError);
914+
glfwWindowHint(GLFW_RESIZABLE, GL_FALSE);
920915
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
921916
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
922917
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);

0 commit comments

Comments
 (0)