OpenTechEngine / OpenTechBFG

Engine based on (RB) Doom 3 BFG aiming to allow the creation of standalone games
Other
84 stars 11 forks source link

glsl shader compilation fails on radeon hd 7850 using mesa #83

Closed damiel closed 8 years ago

damiel commented 8 years ago

Hello,

while attempting to start the engine, the startup fails, here's the paste of the output: https://bpaste.net/show/befbb061fa2b .

I am on linux, running kernel version 4.4.6 and mesa 11.2.2/llvm 3.8, and compiled the engine from the master branch. Here is the output of glxinfo: https://bpaste.net/show/8f2e58323afc

kordex/(kortemik?) pointed me on irc to the following issue for rbdoom-3-bfg:

https://github.com/RobertBeckebans/RBDOOM-3-BFG/issues/252

It basically boils down to this comment: https://github.com/RobertBeckebans/RBDOOM-3-BFG/issues/252#issuecomment-157086271

I'll give it a shot and report back with results.

EDIT: The engine starts just fine with the applied changes.

BielBdeLuna commented 8 years ago

what have you changed?

damiel commented 8 years ago

I added

"precision lowp sampler2D;\n" "precision lowp sampler2DShadow;\n" "precision lowp sampler2DArray;\n" "precision lowp sampler2DArrayShadow;\n" "precision lowp samplerCube;\n" "precision lowp samplerCubeShadow;\n" "precision lowp sampler3D;\n"

to /renderer/RenderProgs_GLSL.cpp. It add the same error message like mentioned in the other issue tho when relaoding shaders so i am not sure if its really a good solution.

BielBdeLuna commented 8 years ago

ok, so it's the same solution I did.

in case you don't know it, if you want to know the OpenGL core and compat versions you can do the following: glxinfo | grep OpenGL there core profile version is easily detailed, and compat is just the other version of OpenGL you get there, (most of the time they match but sometimes they don't, in that situation the higher version is core)