mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 15:01:28 +12:00
gl: Fix memory tag sampling
- Also fixes a bad arg passed to glClearBuffer
This commit is contained in:
parent
0395fb9955
commit
a80f1a6ed4
2 changed files with 3 additions and 3 deletions
|
@ -458,7 +458,7 @@ void GLGSRender::end()
|
|||
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)
|
||||
for (auto &i : buffers_to_clear)
|
||||
glClearBufferfv(m_draw_fbo->id(), i, colors);
|
||||
glClearBufferfv(GL_COLOR, i, colors);
|
||||
}
|
||||
|
||||
if (clear_depth)
|
||||
|
|
|
@ -182,9 +182,9 @@ struct gl_render_target_traits
|
|||
result->set_native_component_layout(native_layout);
|
||||
result->old_contents = old_surface;
|
||||
|
||||
result->queue_tag(address);
|
||||
result->set_cleared(false);
|
||||
result->update_surface();
|
||||
result->queue_tag(address);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -210,9 +210,9 @@ struct gl_render_target_traits
|
|||
result->set_native_component_layout(native_layout);
|
||||
result->old_contents = old_surface;
|
||||
|
||||
result->queue_tag(address);
|
||||
result->set_cleared(false);
|
||||
result->update_surface();
|
||||
result->queue_tag(address);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue