[waffle] [PATCH 13/53] wgl: provide static GLES* symbols (dlsym) via opengl32.dll
Emil Velikov
emil.l.velikov at gmail.com
Sun Nov 9 14:58:50 PST 2014
Under Windows there is a single library that provides the basic/core
symbols for OpenGL and OpenGL ES* alike. One should attempt to use the
latter only if WGL_EXT_create_context_es{2,}_profile is supported.
We check for the extension in waffle_display_supports_context_api()
and users are strongly recommended check the function's return value.
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
src/waffle/wgl/wgl_dl.c | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/src/waffle/wgl/wgl_dl.c b/src/waffle/wgl/wgl_dl.c
index eb9ef46..9d05cb9 100644
--- a/src/waffle/wgl/wgl_dl.c
+++ b/src/waffle/wgl/wgl_dl.c
@@ -39,19 +39,11 @@ wgl_dl_check_enum(int32_t waffle_dl)
{
switch (waffle_dl) {
case WAFFLE_DL_OPENGL:
- return true;
case WAFFLE_DL_OPENGL_ES1:
- wcore_errorf(WAFFLE_ERROR_UNSUPPORTED_ON_PLATFORM,
- "WGL does not support OpenGL ES1");
- return false;
case WAFFLE_DL_OPENGL_ES2:
- wcore_errorf(WAFFLE_ERROR_UNSUPPORTED_ON_PLATFORM,
- "WGL does not support OpenGL ES2");
- return false;
case WAFFLE_DL_OPENGL_ES3:
- wcore_errorf(WAFFLE_ERROR_UNSUPPORTED_ON_PLATFORM,
- "WGL does not support OpenGL ES3");
- return false;
+ // OPENGL32.DLL provides GL and GLES* symbols.
+ return true;
default:
assert(false);
return false;
--
2.1.3
More information about the waffle
mailing list