diff options
| author | Ray San <[email protected]> | 2017-10-30 13:51:46 +0100 |
|---|---|---|
| committer | Ray San <[email protected]> | 2017-10-30 13:51:46 +0100 |
| commit | 415e7e972c920cbf3194c4dfbbfe402d7c4406c5 (patch) | |
| tree | 5d99b048337fe996343d3c7f518e7ac71c39aef7 /src/rlgl.c | |
| parent | f460b3842e76e110daf0d1e81c39fb9f1b44e95e (diff) | |
| download | raylib-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
