diff options
Diffstat (limited to 'examples/platformer/main.lua')
| -rw-r--r-- | examples/platformer/main.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/platformer/main.lua b/examples/platformer/main.lua index f419423..fe594ec 100644 --- a/examples/platformer/main.lua +++ b/examples/platformer/main.lua @@ -288,15 +288,12 @@ end function RL.draw() RL.ClearBackground( RL.RED ) - RL.SetTextureSource( RL.TEXTURE_SOURCE_TEXTURE ) RL.BeginTextureMode( framebuffer ) drawMap() drawPlayer() RL.EndTextureMode() - -- RL.SetTextureSource( RL.TEXTURE_SOURCE_RENDER_TEXTURE ) - -- RL.DrawTexturePro( framebuffer, { 0, 0, res.x, -res.y }, { 0, 0, winSize.x, winSize.y }, { 0, 0 }, 0.0, RL.WHITE ) - -- RL.SetTextureSource( RL.TEXTURE_SOURCE_TEXTURE ) + RL.DrawTexturePro( framebuffer, { 0, 0, res.x, -res.y }, { 0, 0, winSize.x, winSize.y }, { 0, 0 }, 0.0, RL.WHITE ) RL.glBlitFramebuffer( framebuffer, -1, res, winSize, RL.GL_COLOR_BUFFER_BIT, RL.GL_NEAREST ) end |
