diff options
| author | raysan5 <[email protected]> | 2020-07-28 11:44:45 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-07-28 11:44:45 +0200 |
| commit | 20301d1e5d4951c6c43b1550f1506f19422b5a4c (patch) | |
| tree | 2646b6736a789cf12be16fd21e13b877cba44f1e /src | |
| parent | 488c60d13945cf1b8f51ff668c5adc7a80e3b734 (diff) | |
| download | raylib-20301d1e5d4951c6c43b1550f1506f19422b5a4c.tar.gz raylib-20301d1e5d4951c6c43b1550f1506f19422b5a4c.zip | |
Corrected issue with framebuffer size storage #1298
Diffstat (limited to 'src')
| -rw-r--r-- | src/rlgl.h | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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"); } |
