mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-12-15 23:35:38 +00:00
gl_rasterizer: Fix upload size for constant buffers.
This commit is contained in:
parent
d1520410a3
commit
290439a6a5
|
@ -648,11 +648,11 @@ std::tuple<u8*, GLintptr, u32> RasterizerOpenGL::SetupConstBuffers(
|
||||||
|
|
||||||
if (used_buffer.IsIndirect()) {
|
if (used_buffer.IsIndirect()) {
|
||||||
// Buffer is accessed indirectly, so upload the entire thing
|
// Buffer is accessed indirectly, so upload the entire thing
|
||||||
size = buffer.size * sizeof(float);
|
size = buffer.size;
|
||||||
|
|
||||||
if (size > MaxConstbufferSize) {
|
if (size > MaxConstbufferSize) {
|
||||||
LOG_ERROR(HW_GPU, "indirect constbuffer size {} exceeds maximum {}", size,
|
LOG_CRITICAL(HW_GPU, "indirect constbuffer size {} exceeds maximum {}", size,
|
||||||
MaxConstbufferSize);
|
MaxConstbufferSize);
|
||||||
size = MaxConstbufferSize;
|
size = MaxConstbufferSize;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue