summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-12-17 14:32:18 -0800
committerEric Anholt <eric@anholt.net>2013-12-17 15:08:02 -0800
commit9bc909f5a7024ca3c2b5aa2fc26b19e8de9c7cf0 (patch)
tree0728cce0be62976c66f9894c51929866f1d35a10 /include
parent3ae4726cdbb0fccdb02bcdba07662fe6f6a15589 (diff)
downloadlibepoxy-9bc909f5a7024ca3c2b5aa2fc26b19e8de9c7cf0.tar.gz
win32: Convert the API to being based on function pointers, like Linux.
For performance, I want to be able to make single-context (well, single-pixel-format-and-device) apps be able to directly call GL functions through function pointers. Bake that into the ABI now so I can get a release out the door and fix this up later. This also fixes the lack of __stdcall annotation on the PFNWHATEVERPROC typedefs.
Diffstat (limited to 'include')
-rw-r--r--include/epoxy/gl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/epoxy/gl.h b/include/epoxy/gl.h
index c70a8d6..023810c 100644
--- a/include/epoxy/gl.h
+++ b/include/epoxy/gl.h
@@ -59,7 +59,7 @@ extern "C" {
#endif
#ifndef EPOXYAPIENTRY
-#define EPOXYAPIENTRY __declspec(dllimport)
+#define EPOXYAPIENTRY __declspec(dllimport) __stdcall
#endif
#ifndef GLAPI