Update dri state tracker to use new API aware context create
authorXavier Chantry <chantry.xavier@gmail.com>
Sun, 2 May 2010 20:27:25 +0000 (16:27 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Sun, 2 May 2010 20:27:42 +0000 (16:27 -0400)
src/gallium/state_trackers/dri/common/dri_context.c
src/gallium/state_trackers/dri/common/dri_context.h

index a808d2d..203682e 100644 (file)
@@ -49,7 +49,7 @@ dri_init_extensions(struct dri_context *ctx)
 }
 
 GLboolean
-dri_create_context(const __GLcontextModes * visual,
+dri_create_context(gl_api api, const __GLcontextModes * visual,
                   __DRIcontext * cPriv, void *sharedContextPrivate)
 {
    __DRIscreen *sPriv = cPriv->driScreenPriv;
index 9fe6b58..54e56c6 100644 (file)
@@ -34,6 +34,7 @@
 
 #include "pipe/p_compiler.h"
 #include "dri_wrapper.h"
+#include "main/mtypes.h"
 
 struct pipe_context;
 struct pipe_fence;
@@ -83,7 +84,8 @@ struct dri_context *
 dri_get_current(__DRIscreen * driScreenPriv);
 
 boolean
-dri_create_context(const __GLcontextModes * visual,
+dri_create_context(gl_api api,
+                  const __GLcontextModes * visual,
                   __DRIcontext * driContextPriv,
                   void *sharedContextPrivate);