projects
/
movit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b58b0d
)
Check for __APPLE__ instead of __DARWIN__.
author
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Thu, 15 Jan 2015 21:47:29 +0000
(22:47 +0100)
committer
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Thu, 15 Jan 2015 21:47:29 +0000
(22:47 +0100)
Fixes compile with recent epoxy. Bug report and suggestion
by Dan Dennedy.
util.cpp
patch
|
blob
|
history
diff --git
a/util.cpp
b/util.cpp
index
01787f0
..
579efb3
100644
(file)
--- a/
util.cpp
+++ b/
util.cpp
@@
-9,7
+9,7
@@
#include "init.h"
#include "util.h"
-#if defined(__
DARWIN
__)
+#if defined(__
APPLE
__)
#include <OpenGL/OpenGL.h>
#elif defined(WIN32)
#include <epoxy/wgl.h>
@@
-256,7
+256,7
@@
unsigned next_power_of_two(unsigned v)
void *get_gl_context_identifier()
{
-#if defined(__
DARWIN
__)
+#if defined(__
APPLE
__)
return (void *)CGLGetCurrentContext();
#elif defined(WIN32)
return (void *)wglGetCurrentContext();