summaryrefslogtreecommitdiffhomepage
path: root/src/rlgl.c
diff options
context:
space:
mode:
authorRay San <[email protected]>2017-10-30 13:51:46 +0100
committerRay San <[email protected]>2017-10-30 13:51:46 +0100
commit415e7e972c920cbf3194c4dfbbfe402d7c4406c5 (patch)
tree5d99b048337fe996343d3c7f518e7ac71c39aef7 /src/rlgl.c
parentf460b3842e76e110daf0d1e81c39fb9f1b44e95e (diff)
downloadraylib-415e7e972c920cbf3194c4dfbbfe402d7c4406c5.tar.gz
raylib-415e7e972c920cbf3194c4dfbbfe402d7c4406c5.zip
Review some issues, view description
- Review RPI compilation (core_drop_files not supported) - Review ImageFormat(), some issues - GetTextureData() reviewed for RPI
Diffstat (limited to 'src/rlgl.c')
-rw-r--r--src/rlgl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rlgl.c b/src/rlgl.c
index 35c812a6..5854a494 100644
--- a/src/rlgl.c
+++ b/src/rlgl.c
@@ -2226,8 +2226,8 @@ void *rlReadTexturePixels(Texture2D texture)
glEnable(GL_DEPTH_TEST);
//glDisable(GL_BLEND);
- glViewport(0, 0, width, height);
- rlOrtho(0.0, width, height, 0.0, 0.0, 1.0);
+ glViewport(0, 0, texture.width, texture.height);
+ rlOrtho(0.0, texture.width, texture.height, 0.0, 0.0, 1.0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glUseProgram(GetShaderDefault().id);