r300g: fix typo
authorMarek Olšák <maraeo@gmail.com>
Mon, 19 Jul 2010 15:33:40 +0000 (17:33 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 19 Jul 2010 15:33:40 +0000 (17:33 +0200)
src/gallium/drivers/r300/r300_context.c

index 0c06d41f4a4b2ddbafd13d53551994228a96d350..5093c147462a383e957af468725d056469e8a7f9 100644 (file)
@@ -40,7 +40,7 @@ static void r300_update_num_contexts(struct r300_screen *r300screen,
                                      int diff)
 {
     if (diff > 0) {
-        p_atomic_dec(&r300screen->num_contexts);
+        p_atomic_inc(&r300screen->num_contexts);
 
         if (r300screen->num_contexts > 1)
             util_mempool_set_thread_safety(&r300screen->pool_buffers,