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 913

Summary: SDL bwindow problem with 3d graphics in Haiku (a BeOS clone)
Product: SDL Reporter: Michael Vinícius de Oliveira <michaelvoliveira>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: scottmc2
Version: HG 1.2   
Hardware: x86   
OS: Haiku   
Attachments: opengl only mode
sdl mode
sdl mode 2

Description Michael Vinícius de Oliveira 2009-12-23 00:12:51 UTC
Created attachment 468 [details]
opengl only mode

Seems that BWindow based framebuffer implementation in SDL are buggy with 3D graphics in Haiku (a BeOS clone).

explaining:

After build several games and demos with SDL that uses a minimal 3d functions, appears a small black window on the left top in the screen.

Firstly I was thinking that was a problem with vesa driver. So, I dropped my Radeon HD and use haiku with onboard nvidia (rudolf nvidia driver). Same problem.

After, I search for some opengl demos, then I found good ones in  http://nehe.gamedev.net

later, building 3d examples linking only with lGL, lGLU and lglut runs fine, leading me to think that haiku opengl and bdirectwindow are ok.

So, I started to build the same examples with SDL. This is the good one  http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=05 (on the bottom of this page have linux and linux SDL)

see this 3 screenshots. The first are only with opengl, the later ones with SDL.

the same problem I faced with this following games * Neverball * DreamChess? * FS2 * Carworld

and many others that requires opengl and SDL to do the 3d stuff
Comment 1 Michael Vinícius de Oliveira 2009-12-23 00:14:58 UTC
Created attachment 469 [details]
sdl mode
Comment 2 Michael Vinícius de Oliveira 2009-12-23 00:15:42 UTC
Created attachment 470 [details]
sdl mode 2
Comment 3 Scott McCreary 2011-08-10 12:38:04 UTC
This was fixed in changeset 5599:
http://hg.libsdl.org/SDL/rev/5d7e82c63e84