From 20301d1e5d4951c6c43b1550f1506f19422b5a4c Mon Sep 17 00:00:00 2001 From: raysan5 Date: Tue, 28 Jul 2020 11:44:45 +0200 Subject: [PATCH] Corrected issue with framebuffer size storage #1298 --- src/rlgl.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/rlgl.h b/src/rlgl.h index 9d6c85c75..56045c83f 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -1078,7 +1078,6 @@ void rlOrtho(double left, double right, double bottom, double top, double znear, #endif // Set the viewport area (transformation from normalized device coordinates to window coordinates) -// NOTE: Updates global variables: RLGL.State.framebufferWidth, RLGL.State.framebufferHeight void rlViewport(int x, int y, int width, int height) { glViewport(x, y, width, height); @@ -1763,7 +1762,6 @@ void rlglInit(int width, int height) glClearDepth(1.0f); // Set clear depth value (default) glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Clear color and depth buffers (depth buffer required for 3D) -#if defined(GRAPHICS_API_OPENGL_ES2) || defined(GRAPHICS_API_OPENGL_21) // Store screen size into global variables RLGL.State.framebufferWidth = width; RLGL.State.framebufferHeight = height; @@ -1771,7 +1769,6 @@ void rlglInit(int width, int height) // Init texture and rectangle used on basic shapes drawing RLGL.State.shapesTexture = GetTextureDefault(); RLGL.State.shapesTextureRec = (Rectangle){ 0.0f, 0.0f, 1.0f, 1.0f }; -#endif TRACELOG(LOG_INFO, "RLGL: Default state initialized successfully"); }