[Mesa-dev] [PATCH v2 11/12] mesa: assert if driver did not compute the version

Jordan Justen jordan.l.justen at intel.com
Sun Nov 18 23:49:37 PST 2012


Make sure drivers initialize the version before a context is made
current.

Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
 src/mesa/main/context.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index f15b8bc..cd88731 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1465,7 +1465,7 @@ _mesa_make_current( struct gl_context *newCtx,
       }
 
       if (newCtx->FirstTimeCurrent) {
-         _mesa_compute_version(newCtx);
+         assert(newCtx->Version > 0);
 
          newCtx->Extensions.String = _mesa_make_extension_string(newCtx);
 
-- 
1.7.10.4



More information about the mesa-dev mailing list