Add infrastructure for t_vertex.c codegen. Add an example driver
[mesa.git] / src / mesa / glapi / glapi.c
index bba4b22fd6bab9ba04e65f9b3e485b983aec8921..2a083949fe0b9d6259dbd7f5236ac8df991ec751 100644 (file)
@@ -291,8 +291,8 @@ _glapi_set_dispatch(struct _glapi_table *dispatch)
    /* Use the no-op functions if a NULL dispatch table was requested.
     */
 
-   old_style_dispatch = (struct _glapi_table *) (dispatch == NULL)
-     ? __glapi_noop_table : dispatch;
+   old_style_dispatch = (dispatch == NULL)
+     ? (struct _glapi_table *) __glapi_noop_table : dispatch;
 
 #ifdef DEBUG
    if (dispatch != NULL) {