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 183 - [patch] "SDL_opengl.h" for __MACOS__
Summary: [patch] "SDL_opengl.h" for __MACOS__
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 1.2
Hardware: PowerPC Mac OS Classic
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-26 07:16 UTC by Anders F Bj
Modified: 2006-04-12 10:36 UTC (History)
1 user (show)

See Also:


Attachments
SDL12-opengl-mac.patch (763 bytes, patch)
2006-03-26 07:17 UTC, Anders F Bj
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anders F Bj 2006-03-26 07:16:13 UTC
When switching to "UNIX-style paths" as needed for the new includes,
including <GL/gl.h> and <GL/glu.h> doesn't work anymore on Mac OS...

The two headers are really located in the OpenGL SDK 1.2 CFM like this:
OpenGL:Headers:gl.h
OpenGL:Headers:glu.h

There are also some compat copies, that *used* to work with Mac paths:
OpenGL:Headers:GL/gl.h
OpenGL:Headers:GL/glu.h

The easiest fix is to make SDL_opengl.h include the proper header names,
by adding a special case for the MACOS platform in addition to the MACOSX
Comment 1 Anders F Bj 2006-03-26 07:17:09 UTC
Created attachment 95 [details]
SDL12-opengl-mac.patch
Comment 2 Sam Lantinga 2006-04-12 10:36:58 UTC
This is in CVS, thanks!