mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-25 16:42:39 -06:00
gl_rasterizer: Fix texel buffer size overflow (#6458)
Co-authored-by: GPUCode <geoster3d@gmail.com>
This commit is contained in:
parent
81d24dd7fb
commit
1b944f3255
1 changed files with 1 additions and 2 deletions
|
@ -68,8 +68,7 @@ GLenum MakeAttributeType(Pica::PipelineRegs::VertexAttributeFormat format) {
|
|||
// which corresponds to GL_RG32F
|
||||
GLint max_texel_buffer_size;
|
||||
glGetIntegerv(GL_MAX_TEXTURE_BUFFER_SIZE, &max_texel_buffer_size);
|
||||
LOG_INFO(Render_OpenGL, "Max texture buffer size: {}", max_texel_buffer_size);
|
||||
return std::min<GLsizeiptr>(max_texel_buffer_size * 8, TEXTURE_BUFFER_SIZE);
|
||||
return std::min<GLsizeiptr>(max_texel_buffer_size * 8ULL, TEXTURE_BUFFER_SIZE);
|
||||
}
|
||||
|
||||
} // Anonymous namespace
|
||||
|
|
Loading…
Reference in a new issue