| Summary: | changing gl state is not a good thing | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Vittorio Giovara <vitto.giova> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | Other | ||
| OS: | All | ||
| Attachments: | patch that implements this feature | ||
|
Description
Vittorio Giovara
2010-07-16 19:09:28 UTC
Created attachment 520 [details]
patch that implements this feature
Thank you very much for your patch for SDL 1.3! Do you give me permission to release your code with SDL 1.3 and future versions of SDL under both the LGPL and a closed-source commercial license? sure, no problem. Thanks! :) There was some question about whether we should enable/disable GL_TEXTURE_COORD_ARRAY. Were you able to determine whether your patch was safe in that regard? (In reply to comment #5) > There was some question about whether we should enable/disable > GL_TEXTURE_COORD_ARRAY. Were you able to determine whether your patch was safe > in that regard? well by testing against the sdl demos, only the fireworks caused glitches (where by glitch i mean crash) and enabling or disabling othe gl states didn't change the result. In our app we use opengles directly so this worked well as we have more control. Perhaps you leave this frequent gl switch on by default (for compatibility) and then add an api that freezes the state, This is fixed, thanks! http://hg.libsdl.org/SDL/rev/b5b42be9333c |