egl: Make demo driver compile
authorJakob Bornecrantz <jakob@tungstengraphics.com>
Wed, 28 May 2008 09:32:18 +0000 (11:32 +0200)
committerJakob Bornecrantz <jakob@heavy.lan>
Wed, 28 May 2008 09:55:26 +0000 (10:55 +0100)
src/egl/drivers/demo/demo.c

index 0a13de6..1033f1b 100644 (file)
@@ -152,9 +152,9 @@ demoCreateContext(_EGLDriver *drv, EGLDisplay dpy, EGLConfig config, EGLContext
 
    /* generate handle and insert into hash table */
    _eglSaveContext(&c->Base);
-   assert(c->Base.Handle);
+   assert(_eglGetContextHandle(&c->Base));
 
-   return c->Base.Handle;
+   return _eglGetContextHandle(&c->Base);
 }