mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
GPU: set 'GL_PACK_ALIGNMENT' 1 as default
This fixes T91828. The current value of `GL_PACK_ALIGNMENT` may result in crash in the `gpu` module if the buffer is not aligned. Differential Revision: https://developer.blender.org/D12720
This commit is contained in:
parent
eb3a8fb4e8
commit
bdc66c9569
1 changed files with 1 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ GLStateManager::GLStateManager()
|
|||
glDisable(GL_DITHER);
|
||||
|
||||
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
|
||||
glPixelStorei(GL_PACK_ALIGNMENT, 1);
|
||||
glPixelStorei(GL_UNPACK_ROW_LENGTH, 0);
|
||||
|
||||
glPrimitiveRestartIndex((GLuint)0xFFFFFFFF);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue