mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 05:48:40 +00:00
do not try to release failed-creation textures
This commit is contained in:
@@ -831,8 +831,14 @@ r_end_frame(void)
|
|||||||
tex = next)
|
tex = next)
|
||||||
{
|
{
|
||||||
next = tex->next;
|
next = tex->next;
|
||||||
|
if(tex->view != 0)
|
||||||
|
{
|
||||||
tex->view->lpVtbl->Release(tex->view);
|
tex->view->lpVtbl->Release(tex->view);
|
||||||
|
}
|
||||||
|
if(tex->texture != 0)
|
||||||
|
{
|
||||||
tex->texture->lpVtbl->Release(tex->texture);
|
tex->texture->lpVtbl->Release(tex->texture);
|
||||||
|
}
|
||||||
tex->view = 0;
|
tex->view = 0;
|
||||||
tex->texture = 0;
|
tex->texture = 0;
|
||||||
tex->generation += 1;
|
tex->generation += 1;
|
||||||
@@ -843,8 +849,12 @@ r_end_frame(void)
|
|||||||
buf = next)
|
buf = next)
|
||||||
{
|
{
|
||||||
next = buf->next;
|
next = buf->next;
|
||||||
|
if(buf->buffer != 0)
|
||||||
|
{
|
||||||
buf->buffer->lpVtbl->Release(buf->buffer);
|
buf->buffer->lpVtbl->Release(buf->buffer);
|
||||||
|
}
|
||||||
buf->generation += 1;
|
buf->generation += 1;
|
||||||
|
buf->buffer = 0;
|
||||||
SLLStackPush(r_d3d11_state->first_free_buffer, buf);
|
SLLStackPush(r_d3d11_state->first_free_buffer, buf);
|
||||||
}
|
}
|
||||||
arena_clear(r_d3d11_state->buffer_flush_arena);
|
arena_clear(r_d3d11_state->buffer_flush_arena);
|
||||||
|
|||||||
Reference in New Issue
Block a user