From b303015d99633845cf5b4eff2d1c2980e5d24fd8 Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Thu, 8 May 2014 11:48:44 +0200 Subject: [PATCH] drawtex: fixed compiler warnings related to use of eglGetProcAddress Add proper include and cast in order to fix compiler warnings related to the use of eglGetProcAddress. --- src/egl/opengles1/drawtex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/egl/opengles1/drawtex.c b/src/egl/opengles1/drawtex.c index 1ba8ac7..dc1de13 100644 --- a/src/egl/opengles1/drawtex.c +++ b/src/egl/opengles1/drawtex.c @@ -16,6 +16,7 @@ #include #include #include +#include #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"); -- 1.8.4.5