Skip to content

Commit

Permalink
Updated to compile with the latest ESDL.
Browse files Browse the repository at this point in the history
I have wrapped the definition of SDL_GL_STERO and so on in a ifndef
so that wings_init.erl will compile in the latest ESDL as well
as in older versions of ESDL.
  • Loading branch information
bjorng committed May 6, 2009
1 parent 2419e16 commit 3b62ad3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wings_init.erl
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@
-define(NEED_ESDL, 1).
-include("wings.hrl").

-ifndef(SDL_GL_STEREO).
%% Older ESDL.
-define(SDL_GL_STEREO, 12).
-define(SDL_GL_MULTISAMPLEBUFFERS, 13).
-define(SDL_GL_MULTISAMPLESAMPLES, 14).
-define(SDL_GL_ACCELERATED_VISUAL, 15).
-define(SDL_GL_SWAP_CONTROL, 16).
-endif.

init() ->
macosx_workaround(),
Expand Down

0 comments on commit 3b62ad3

Please sign in to comment.