[Linux] fixing glCompressedTexImage2D failed (GL_INVALID_EN
Posted: Sun Dec 23, 2012 3:05 am
The game seems to use a texture packaging format called S3TC, and if you get the following error message it's because your system doesn't support it.
This can be caused by two different issues. The first issue is that you do not have the relevant packages installed to support it. In fedora 16 you need to do the following to install the package:
For newer distributions it should already be supported out of the box, but you might have to find a package for that library yourself.
If you have the relevant software installed, you might need to enable the support for it. This can be done by installing driconf and enabling it there.
Code: Select all
[string "CustomMaterials.lua"]:0: GL error: glCompressedTexImage2D failed (GL_INVALID_ENUM 0x0500)
stack traceback:
[C]: in function 'load'
[string "CustomMaterials.lua"]: in function 'create'
[string "Grimrock.lua"]: in function 'init'
[string "Grimrock.lua"]: in main chunk
[C]: in function 'require'
init.lua: in main chunk
Code: Select all
sudo yum install libtxc_dxtn
If you have the relevant software installed, you might need to enable the support for it. This can be done by installing driconf and enabling it there.