HaxePunk / post-process

[Deprecated] Post processing using GLSL in HaxePunk
MIT License
13 stars 3 forks source link

Magenta screen on mobile #1

Open jon914 opened 10 years ago

jon914 commented 10 years ago

I've been playing around with this. It works great on the standalone target, but on mobile (iOS Simulator to be exact - didn't try devices), the entire screen gets painted in magenta, no matter what shader is used - is that expected?

MattTuttle commented 10 years ago

Unfortunately there isn't a clean way to do this on a mobile device. I hadn't tested on the simulator but it works on an actual device. The issue is that I'm assuming the default framebuffer has the id of 1 (which apparently isn't true in the iOS Simulator). If I remember right Lime doesn't implement GL.get(GL.FRAMEBUFFER_BINDING_OES) but once it does I'll update this project.

jon914 commented 10 years ago

I've checked this now on an actual device (iPad Mini Gen 2) and while I don't get the magenta screen anymore, all game rendering "freezes" once the shader goes into place. Curiously, the iOS Simulator is now acting exactly the same way.

Android is working properly using the same code.