summaryrefslogtreecommitdiff
path: root/src/gl.c
diff options
context:
space:
mode:
authorjussi2024-05-20 15:45:31 +0300
committerjussi2024-05-20 15:45:31 +0300
commit9edaf7a47b02bd351c400f0c6aec517884449551 (patch)
treecf7019c08a033cb0b3739cdbcbb40b7c55fbad89 /src/gl.c
parente84be852546aecf3e151fd8bb92db88a068c1ea1 (diff)
downloadreilua-enhanced-9edaf7a47b02bd351c400f0c6aec517884449551.tar.gz
reilua-enhanced-9edaf7a47b02bd351c400f0c6aec517884449551.tar.bz2
reilua-enhanced-9edaf7a47b02bd351c400f0c6aec517884449551.zip
Use GetApplicationDirectory instead of GetWorkingDirectory for basePath if no path argument given.
Diffstat (limited to 'src/gl.c')
-rw-r--r--src/gl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gl.c b/src/gl.c
index 31c5293..ec27d3b 100644
--- a/src/gl.c
+++ b/src/gl.c
@@ -32,7 +32,7 @@ Copy a block of pixels from one framebuffer object to another.
Use nil RenderTexture for window framebuffer
*/
int lglBlitFramebuffer( lua_State* L ) {
-// #if defined( PLATFORM_DESKTOP ) || defined( PLATFORM_DESKTOP_SDL )
+#if defined( PLATFORM_DESKTOP ) || defined( PLATFORM_DESKTOP_SDL )
if ( !( lua_isuserdata( L, 1 ) || lua_isnil( L, 1 ) ) || !( lua_isuserdata( L, 2 ) || lua_isnil( L, 2 ) ) ) {
TraceLog( state->logLevelInvalid, "%s", "Argument needs to be RenderTexture or nil" );
lua_pushnil( L );
@@ -70,7 +70,7 @@ int lglBlitFramebuffer( lua_State* L ) {
glBindFramebuffer( GL_DRAW_FRAMEBUFFER, 0 );
return 1;
-// #endif
+#endif
}
/*