GPU: Add debug groups inside selection code
This makes the debugging easier.
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "GPU_debug.h"
|
||||
#include "GPU_framebuffer.h"
|
||||
#include "GPU_select.h"
|
||||
#include "GPU_state.h"
|
||||
@@ -74,6 +75,8 @@ static GPUSelectQueryState g_query_state = {0};
|
||||
void gpu_select_query_begin(
|
||||
uint (*buffer)[4], uint bufsize, const rcti *input, char mode, int oldhits)
|
||||
{
|
||||
GPU_debug_group_begin("Selection Queries");
|
||||
|
||||
g_query_state.query_issued = false;
|
||||
g_query_state.bufsize = bufsize;
|
||||
g_query_state.buffer = buffer;
|
||||
@@ -197,5 +200,7 @@ uint gpu_select_query_end(void)
|
||||
GPU_depth_test(g_query_state.depth_test);
|
||||
GPU_viewport(UNPACK4(g_query_state.viewport));
|
||||
|
||||
GPU_debug_group_end();
|
||||
|
||||
return hits;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user