egl: Make demo driver compile

This commit is contained in:
Jakob Bornecrantz 2008-05-28 11:32:18 +02:00 committed by Jakob Bornecrantz
parent 3e867959e9
commit 003afbe5bd

View 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);
}