Platform web.
This commit is contained in:
2
src/gl.c
2
src/gl.c
@@ -15,6 +15,7 @@ Copy a block of pixels from one framebuffer object to another.
|
||||
Use -1 RenderTexture for window framebuffer
|
||||
*/
|
||||
int lglBlitFramebuffer( lua_State *L ) {
|
||||
#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 );
|
||||
@@ -52,4 +53,5 @@ int lglBlitFramebuffer( lua_State *L ) {
|
||||
glBindFramebuffer( GL_DRAW_FRAMEBUFFER, 0 );
|
||||
|
||||
return 1;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user