i915: Make EGL_i915 compile
authorJakob Bornecrantz <jakob@tungstengraphics.com>
Wed, 28 May 2008 10:27:27 +0000 (12:27 +0200)
committerJakob Bornecrantz <jakob@tungstengraphics.com>
Wed, 28 May 2008 10:27:27 +0000 (12:27 +0200)
src/gallium/winsys/egl_drm/intel/intel_egl.c

index 12eeff2b23b4f33c96024626132970cd818bb8a5..98dbe26376f22c6645033cdaa575176575896a31 100644 (file)
@@ -3,6 +3,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
+#include <stdint.h>
 
 #include "eglconfig.h"
 #include "eglcontext.h"
@@ -13,7 +14,6 @@
 #include "eglscreen.h"
 #include "eglsurface.h"
 
-#include "glapi.h"
 #include "intel_egl.h"
 
 #include "xf86drm.h"
@@ -283,9 +283,9 @@ drm_create_context(_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);
 err_gl:
        free(context);
 err_c: