Skip to content

flare.ktx broken #44

@Rotwang

Description

@Rotwang

Hi,
the mirrorclampedge example results in black screen. I tracked down the reason down to the flare.ktx being most likely broken.
The problem being:

---------------
GL_INVALID_ENUM in glTexStorage2D(internalformat = GL_RGB)
Message ID: 5
Source: API
Type: Error
Severity: high
---------------
GL_INVALID_OPERATION in glTexSubImage2D(invalid texture level 0)
Message ID: 5
Source: API
Type: Error
Severity: high
---------------
GL_INVALID_OPERATION in glGenerateMipmap(zero size base image)
Message ID: 5
Source: API
Type: Error
Severity: high

ktxinfo utility says the following:

> ktxinfo flare.ktx 
Header

�KTX 11�
�
������
endianness: 0x4030201
glType: 0x1401
glTypeSize: 1
glFormat: 0x1907
glInternalformat: 0x1907
glBaseInternalformat: 0x1907
pixelWidth: 512
pixelHeight: 512
pixelDepth: 0
numberOfArrayElements: 0
numberOfFaces: 0
numberOfMipLevels: 1
bytesOfKeyValueData: 0
The KTX 1 file pHeader is invalid:
  it has invalid data such as bad glTypSize, improper dimensions,
improper number of faces or too many levels.

Do you have working version of flare.ktx?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions