summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@gmail.com>2005-05-18 01:44:11 +0000
committerJon Smirl <jonsmirl@gmail.com>2005-05-18 01:44:11 +0000
commit9a3da7ea7b61fcd71dd5caf9be9eaf485aa7947d (patch)
tree79a8261d54677d4456799f8a6faa21db0ee1351b /progs
parent6e56f905d00f27257f252be3c2666dad52aeab45 (diff)
Implement fbdev swapbuffers()
Diffstat (limited to 'progs')
-rw-r--r--progs/egl/demo2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/progs/egl/demo2.c b/progs/egl/demo2.c
index e8ace3da8e..4e0004d930 100644
--- a/progs/egl/demo2.c
+++ b/progs/egl/demo2.c
@@ -9,7 +9,7 @@
#include <GLES/egl.h>
-#define FRONTBUFFER
+//#define FRONTBUFFER
static void _subset_Rectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
{
@@ -22,7 +22,7 @@ static void _subset_Rectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
}
-static void redraw(EGLDisplay dpy, int rot)
+static void redraw(EGLDisplay dpy, EGLSurface surf, int rot)
{
printf("Redraw event\n");
@@ -51,7 +51,7 @@ static void redraw(EGLDisplay dpy, int rot)
#ifdef FRONTBUFFER
glFlush();
#else
- EGLSwapBuffers( dpy, w );
+ eglSwapBuffers( dpy, surf );
#endif
glFinish();
}
@@ -167,7 +167,7 @@ main(int argc, char *argv[])
glShadeModel( GL_FLAT );
for (i = 0; i < 6; i++) {
- redraw(d, i*10 );
+ redraw(d, screen_surf, i*10 );
printf("sleep(1)\n");
sleep(1);