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 - SDL_DisplayFormat fails when using OpenGL
Summary: SDL_DisplayFormat fails when using OpenGL
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86 Windows (XP)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-26 21:12 UTC by Alexei Tereschenko
Modified: 2009-12-15 17:09 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. :)