| Summary: | SDL_UpdateTexture broken on iPhone | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Pavel Kanzelsberger <kanzels> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | blocker | ||
| Priority: | P2 | CC: | kanzels |
| Version: | HG 2.0 | ||
| Hardware: | iPhone/iPod touch | ||
| OS: | iOS 3 | ||
|
Description
Pavel Kanzelsberger
2010-09-21 12:16:34 UTC
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. 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! |