gl: Fix memory tag sampling

- Also fixes a bad arg passed to glClearBuffer
This commit is contained in:
kd-11 2019-02-28 13:29:53 +03:00 committed by kd-11
parent 0395fb9955
commit a80f1a6ed4
2 changed files with 3 additions and 3 deletions

View file

@ -458,7 +458,7 @@ void GLGSRender::end()
GLfloat colors[] = { 0.f, 0.f, 0.f, 0.f }; GLfloat colors[] = { 0.f, 0.f, 0.f, 0.f };
//It is impossible for the render target to be type A or B here (clear all would have been flagged) //It is impossible for the render target to be type A or B here (clear all would have been flagged)
for (auto &i : buffers_to_clear) for (auto &i : buffers_to_clear)
glClearBufferfv(m_draw_fbo->id(), i, colors); glClearBufferfv(GL_COLOR, i, colors);
} }
if (clear_depth) if (clear_depth)

View file

@ -182,9 +182,9 @@ struct gl_render_target_traits
result->set_native_component_layout(native_layout); result->set_native_component_layout(native_layout);
result->old_contents = old_surface; result->old_contents = old_surface;
result->queue_tag(address);
result->set_cleared(false); result->set_cleared(false);
result->update_surface(); result->update_surface();
result->queue_tag(address);
return result; return result;
} }
@ -210,9 +210,9 @@ struct gl_render_target_traits
result->set_native_component_layout(native_layout); result->set_native_component_layout(native_layout);
result->old_contents = old_surface; result->old_contents = old_surface;
result->queue_tag(address);
result->set_cleared(false); result->set_cleared(false);
result->update_surface(); result->update_surface();
result->queue_tag(address);
return result; return result;
} }