mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
gl_rasterizer: Fixup for #1723.
On invalidating the streaming buffer, we need to reupload all vertex buffers. But we don't need to reconfigure the vertex format. This was a (silly) misstake in #1723. Thanks at Rodrigo for discovering the issue. Fun fact, as configuring the vertex format also invalidate the vertex buffer, this misstake had no affect on the behavior.
This commit is contained in:
parent
1cd40f107f
commit
8747f5fc0d
@ -668,7 +668,7 @@ void RasterizerOpenGL::DrawArrays() {
|
|||||||
bool invalidate = buffer_cache.Map(buffer_size);
|
bool invalidate = buffer_cache.Map(buffer_size);
|
||||||
if (invalidate) {
|
if (invalidate) {
|
||||||
// As all cached buffers are invalidated, we need to recheck their state.
|
// As all cached buffers are invalidated, we need to recheck their state.
|
||||||
gpu.dirty_flags.vertex_attrib_format = 0xFFFFFFFF;
|
gpu.dirty_flags.vertex_array = 0xFFFFFFFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
SetupVertexFormat();
|
SetupVertexFormat();
|
||||||
|
Loading…
Reference in New Issue
Block a user