We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 688

Summary: SDL_DisplayFormat fails when using OpenGL
Product: SDL Reporter: Alexei Tereschenko <second_jin>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: Windows (XP)   

Description Alexei Tereschenko 2009-01-26 21:12:13 UTC
Test example "testsprite".

Add a macro SDL_OPENGL to the "videoflags" variable in testsprite.c.
(173) videoflags = SDL_SWSURFACE | SDL_ANYFORMAT | SDL_OPENGL;

Run the example. It exits with errorcode 1. The error appears in:
LoadSprite() -> SDL_DisplayFormat() -> "Couldn't convert background:
Empty destination palette". With cmd params "-fast" or "-hw" the result is the same.

Without SDL_OPENGL it works well.
Comment 1 Sam Lantinga 2009-02-16 22:04:34 UTC
This isn't actually a bug, you can't use the SDL 1.2 blit API with OpenGL enabled, although the error message is terrible. :)