Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL_UpdateTexture broken on iPhone #309

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

SDL_UpdateTexture broken on iPhone #309

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: HG 2.0
Reported for operating system, platform: iOS 3, iPhone/iPod touch

Comments on the original bug report:

On 2010-09-21 12:16:34 +0000, Pavel Kanzelsberger wrote:

SDL_UpdateTexture seems to work fine with OpenGL renderer on MacOSX, however when I run the very same code on iPhone using OpenGL ES, SDL_UpdateTexture seems to be broken. In fact it won't update the requested area of texture from surface but rather fill with some random pixels. It won't produce any crashes so I'm not able to post any more information from debugger...

On 2011-01-07 22:02:57 +0000, Nathaniel J Fries wrote:

looking at the "SetupTextureUpdate" functions for the two different renderers, I see that the GLES one binds the texture inside the function; the GL one does it after the glEnable call in SDL_UpdateTexture. Both call glPixelStorei. Perhaps glPixelStorei needs to be called BEFORE glEnable (glPixelStorei is called in both versions of SetupTextureUpdate)

I've never used glPixelStorei personally, so I don't know. It's just a difference noted between something that works and something that doesn't.

On 2011-02-16 03:57:05 +0000, Sam Lantinga wrote:

Can you retest with the latest snapshot? The OpenGL/ES* renderers have gotten a bunch of love (and maybe bugs!) lately. :)
http://www.libsdl.org/tmp/SDL-1.3.zip

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant