projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
egl: Fix warning in eglgears
[mesa.git]
/
progs
/
egl
/
eglgears.c
diff --git
a/progs/egl/eglgears.c
b/progs/egl/eglgears.c
index 909f4837b2af1ecb51f7ac9303324aae450e13c7..a004cb7e8697a4774cd7873e426e985dc7493c1f 100644
(file)
--- a/
progs/egl/eglgears.c
+++ b/
progs/egl/eglgears.c
@@
-27,13
+27,16
@@
* Program runs for 5 seconds then exits, outputing framerate to console
*/
* Program runs for 5 seconds then exits, outputing framerate to console
*/
+#define EGL_EGLEXT_PROTOTYPES
+
+#include <assert.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <GL/gl.h>
#include <GLES/egl.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <GL/gl.h>
#include <GLES/egl.h>
-#include <
asser
t.h>
+#include <
GLES/eglex
t.h>
#define MAX_CONFIGS 10
#define MAX_MODES 100
#define MAX_CONFIGS 10
#define MAX_MODES 100
@@
-385,7
+388,7
@@
main(int argc, char *argv[])
}
/* DBR : Create EGL context/surface etc */
}
/* DBR : Create EGL context/surface etc */
-
d = eglGetDisplay(
"!EGL_i915");
+
d = eglGetDisplay((EGLNativeDisplayType)
"!EGL_i915");
assert(d);
if (!eglInitialize(d, &maj, &min)) {
assert(d);
if (!eglInitialize(d, &maj, &min)) {