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