flaw-gl/Flaw/Graphics/GlContext.hs

Summary

Maintainability
Test Coverage

TODO found
Open

        -- TODO: it's not optimal, as we will set the same divisor multiple times for the same slot
Severity: Minor
Found in flaw-gl/Flaw/Graphics/GlContext.hs by fixme

Reduce duplication
Open

            glGetProgramiv programName GL_LINK_STATUS statusPtr
Severity: Minor
Found in flaw-gl/Flaw/Graphics/GlContext.hs by hlint

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

    textureName <- glAllocTextureName
Severity: Minor
Found in flaw-gl/Flaw/Graphics/GlContext.hs by hlint

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

    bufferName <- glAllocBufferName
Severity: Minor
Found in flaw-gl/Flaw/Graphics/GlContext.hs by hlint

Found

bufferName <- glAllocBufferName
glBindBuffer GL_ARRAY_BUFFER bufferName
glCheckErrors0 "bind buffer"

Perhaps

Combine with flaw-gl/Flaw/Graphics/GlContext.hs:583:5

There are no issues that match your filters.

Category
Status