flaw-gl/Flaw/Graphics/GlContext.hs
TODO found Open
Open
-- TODO: it's not optimal, as we will set the same divisor multiple times for the same slot
- Exclude checks
Reduce duplication Open
Open
glGetProgramiv programName GL_LINK_STATUS statusPtr
- Read upRead up
- Exclude checks
Found
glGetProgramiv programName GL_LINK_STATUS statusPtr
glCheckErrors0 "get program link status"
peek statusPtr
Perhaps
Combine with flaw-gl/Flaw/Graphics/GlContext.hs:737:9
Reduce duplication Open
Open
textureName <- glAllocTextureName
- Read upRead up
- Exclude checks
Found
textureName <- glAllocTextureName
glBindTexture GL_TEXTURE_2D textureName
glCheckErrors0 "bind texture"
Perhaps
Combine with flaw-gl/Flaw/Graphics/GlContext.hs:473:5
Reduce duplication Open
Open
bufferName <- glAllocBufferName
- Read upRead up
- Exclude checks
Found
bufferName <- glAllocBufferName
glBindBuffer GL_ARRAY_BUFFER bufferName
glCheckErrors0 "bind buffer"
Perhaps
Combine with flaw-gl/Flaw/Graphics/GlContext.hs:583:5