summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Dirsch <sndirsch@suse.de>2014-05-08 11:48:44 +0200
committerTapani Pälli <tapani.palli@intel.com>2014-05-12 12:36:57 +0300
commit6ad8820c457845300806a2f9469599460ca96af9 (patch)
tree6672edfeeb9e560dbdf6095f69906d0a5d7c582f
parentb695b1fd0be28206bbf7cea3185250cd2127ea84 (diff)
drawtex: fixed compiler warnings related to use of eglGetProcAddress
Add proper <EGL/egl.h> include and cast in order to fix compiler warnings related to the use of eglGetProcAddress. Reviewed-By: Tapani Pälli <tapani.palli@intel.com>
-rw-r--r--src/egl/opengles1/drawtex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/egl/opengles1/drawtex.c b/src/egl/opengles1/drawtex.c
index 1ba8ac73..dc1de137 100644
--- a/src/egl/opengles1/drawtex.c
+++ b/src/egl/opengles1/drawtex.c
@@ -16,6 +16,7 @@
#include <string.h>
#include <GLES/gl.h>
#include <GLES/glext.h>
+#include <EGL/egl.h>
#include "eglut.h"
@@ -129,7 +130,7 @@ init(void)
exit(1);
}
- glDrawTexfOES_func = eglGetProcAddress("glDrawTexfOES");
+ glDrawTexfOES_func = (PFNGLDRAWTEXFOESPROC) eglGetProcAddress("glDrawTexfOES");
if (!glDrawTexfOES_func) {
fprintf(stderr, "Sorry, failed to resolve glDrawTexfOES function\n");