Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ LINKFLAGS := -pthread -lAntTweakBar $(shell sdl2-config --libs) $(shell freetype

ARCH = $(shell uname -s)
ifeq ($(ARCH),Linux)
LINKFLAGS += -lGLEW -lGL
LINKFLAGS += -lepoxy -lGL
else
ifeq ($(ARCH),Darwin)
LINKFLAGS += -framework OpenGL
Expand All @@ -74,7 +74,6 @@ OFILES=\
solid.o \
cloud.o \
final.o \
glprocs.o \
myTwEventSDL20.o \
icon.o \
widget.o \
Expand Down
60 changes: 0 additions & 60 deletions glprocs.cc

This file was deleted.

4 changes: 1 addition & 3 deletions glprocs.hh
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@
#ifdef __APPLE__
#include <OpenGL/gl3.h>
#else
#include <GL/glew.h>
#include <epoxy/gl.h>
#endif

void initGLProcs();

#endif
11 changes: 1 addition & 10 deletions sdl_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,10 @@ static int go()
set_sdl_attr(SDL_GL_MULTISAMPLEBUFFERS, 1);
set_sdl_attr(SDL_GL_MULTISAMPLESAMPLES, 4);

#ifdef __APPLE__
// Apple defaults to an OpenGL 2.1 Compatibility context unless you
// specify otherwise.
// Use an OpenGL 3.2 Core Profile context.
set_sdl_attr(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
set_sdl_attr(SDL_GL_CONTEXT_MINOR_VERSION, 2);
set_sdl_attr(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
#endif

Viewport viewport(640, 480);

Expand All @@ -128,12 +125,6 @@ static int go()
exit(1);
}

//
// Get access to OpenGL functions
//

initGLProcs();

//
// Initialize orbital rendering pipeline
//
Expand Down