Cleanup: replace attrib w/ attr
[blender.git] / source / blender / gpu / intern / gpu_select_pick.c
index 9b64d48fe50e4dbc2bdbe418d6f375a5b4f998ec..ecd49d3e4d808df3ea00b0f7f8a5d19e17c67776 100644 (file)
@@ -41,7 +41,6 @@
 
 #include "BLI_rect.h"
 #include "BLI_listbase.h"
-#include "BLI_math_vector.h"
 #include "BLI_utildefines.h"
 
 #include "gpu_select_private.h"
@@ -318,7 +317,7 @@ void gpu_select_pick_begin(
 
        /* Restrict OpenGL operations for when we don't have cache */
        if (ps->is_cached == false) {
-               gpuPushAttrib(GPU_DEPTH_BUFFER_BIT | GPU_VIEWPORT_BIT);
+               gpuPushAttr(GPU_DEPTH_BUFFER_BIT | GPU_VIEWPORT_BIT);
 
                /* disable writing to the framebuffer */
                glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE);
@@ -540,7 +539,7 @@ uint gpu_select_pick_end(void)
                        /* force finishing last pass */
                        gpu_select_pick_load_id(ps->gl.prev_id);
                }
-               gpuPopAttrib();
+               gpuPopAttr();
                glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
        }