diff --git a/src/platforms/rcore_web.c b/src/platforms/rcore_web.c index cf2ce0065..ad64a2595 100644 --- a/src/platforms/rcore_web.c +++ b/src/platforms/rcore_web.c @@ -1692,6 +1692,8 @@ static EM_BOOL EmscriptenResizeCallback(int eventType, const EmscriptenUiEvent * emscripten_set_canvas_element_size(GetCanvasId(), width, height); + glfwSetWindowSize(platform.handle, width, height); // inform glfw of the new size + SetupViewport(width, height); // Reset viewport and projection matrix for new size CORE.Window.currentFbo.width = width;