mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-17 03:30:13 -08:00
fix releasing of nil gpu buffer handles
This commit is contained in:
1 parent
c934892006
commit
b9be24a17d
1 file changed
+4
-1
@@ -801,7 +801,10 @@ r_buffer_release(R_Handle handle)
|
||||
MutexScopeW(r_d3d11_state->device_rw_mutex)
|
||||
{
|
||||
R_D3D11_Buffer *buffer = r_d3d11_buffer_from_handle(handle);
|
||||
SLLStackPush(r_d3d11_state->first_to_free_buffer, buffer);
|
||||
if(buffer != &r_d3d11_buffer_nil)
|
||||
{
|
||||
SLLStackPush(r_d3d11_state->first_to_free_buffer, buffer);
|
||||
}
|
||||
}
|
||||
ProfEnd();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user