mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-27 12:04:16 +01: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
@ -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 New Issue
Block a user