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 a808d2d9ddfe2891ac7d4905f02cb01b61f0dcbc..203682ef330469ba2040daf64d503f5881625f82 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 9fe6b581016653ee7459cd448f3bdbbbe1f3e7f5..54e56c6499801f8265a5fa9e5c539213cf5d0ecd 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);