mesa: put gl_thread_state inside gl_context to remove pointer indirection
[mesa.git] / src / mesa / main / glthread.h
index d8e9c3da84a77c4dd09153273d7d10adc2c93171..0d48438b9bdfb1bd5a48a5fc4a6289840c7300e4 100644 (file)
@@ -86,6 +86,9 @@ struct glthread_state
    /** This is sent to the driver for framebuffer overlay / HUD. */
    struct util_queue_monitoring stats;
 
+   /** Whether GLThread is enabled. */
+   bool enabled;
+
    /** The ring of batches in memory. */
    struct glthread_batch batches[MARSHAL_MAX_BATCHES];