mesa/main: Add missing null check in _mesa_CreatePerfQueryINTEL()
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
This commit is contained in:
committed by
Tapani Pälli
parent
5c9056d37f
commit
7bfe94694c
@@ -1036,6 +1036,11 @@ _mesa_CreatePerfQueryINTEL(GLuint queryId, GLuint *queryHandle)
|
||||
}
|
||||
|
||||
m = new_performance_monitor(ctx, first);
|
||||
if (m == NULL) {
|
||||
_mesa_error_no_memory(__func__);
|
||||
return;
|
||||
}
|
||||
|
||||
_mesa_HashInsert(ctx->PerfMonitor.Monitors, first, m);
|
||||
*queryHandle = first;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user