mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-27 01:22:37 -06:00
gl_stream_buffer: update the information about the AMD hack
This commit is contained in:
parent
dd6252a676
commit
129b893509
1 changed files with 4 additions and 3 deletions
|
@ -17,9 +17,10 @@ OGLStreamBuffer::OGLStreamBuffer(GLenum target, GLsizeiptr size, bool prefer_coh
|
||||||
GLsizeiptr allocate_size = size;
|
GLsizeiptr allocate_size = size;
|
||||||
if (target == GL_ARRAY_BUFFER) {
|
if (target == GL_ARRAY_BUFFER) {
|
||||||
// On AMD GPU there is a strange crash in indexed drawing. The crash happens when the buffer
|
// On AMD GPU there is a strange crash in indexed drawing. The crash happens when the buffer
|
||||||
// read position is near the end and the crash looks like an out-of-bound access. Doubling
|
// read position is near the end and is an out-of-bound access to the vertex buffer. This is
|
||||||
// the allocation size for the vertex buffer seems to avoid the crash.
|
// probably a bug in the driver and is related to the usage of vec3<byte> attributes in the
|
||||||
// TODO (wwylele): investigate what actually happens here.
|
// vertex array. Doubling the allocation size for the vertex buffer seems to avoid the
|
||||||
|
// crash.
|
||||||
allocate_size *= 2;
|
allocate_size *= 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue