mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-09 00:12:45 +01:00
Merge pull request #1070 from bunnei/cbuf-sz
gl_rasterizer: Fix upload size for constant buffers.
This commit is contained in:
commit
2a42dea568
1 changed files with 3 additions and 3 deletions
|
@ -648,10 +648,10 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue