Hello, fellow developers as an exercise I'm trying to port quakespasm to amigaos4. I'm kind of new to game development and graphic libraries. So far I managed to boot the game with some visual glitches.
The build crashes a lot and the performance is bad but it starts.
Two problems related to gl4es seem to be causing some of the above.
The first is strange as I can't find any function call with the below values. 0x8036 is defined in gl.h under the name GL_UNSIGNED_INT_10_10_10_2.
LIBGL: Unsupported source data type: 0x8036
LIBGL: swizzle error: (GL_RGBA, 0x8036 -> GL_RGBA, GL_UNSIGNED_BYTE)
LIBGL: Unsupported source data type: 0x8036
LIBGL: swizzle error: (GL_RGBA, 0x8036 -> GL_RGBA, GL_UNSIGNED_BYTE)
LIBGL: Unsupported source data type: 0x8036
LIBGL: swizzle error: (GL_RGBA, 0x8036 -> GL_RGBA, GL_UNSIGNED_BYTE)
It is used as type value for lightmaps if r_lightmapwide is set to 1, which is not the case.
const qboolean wide10bits = r_lightmapwide.value != 0;
const GLenum type = wide10bits ? GL_UNSIGNED_INT_10_10_10_2 : GL_UNSIGNED_BYTE;
The other problem is about shader compilation (which explains lighting problems):
Warning: GLSL program failed to compile: ERROR: Code generation failed.
Error log:
Boolean uniforms aren't supported yet:
offset: 0, size: 1, Bool UseAlphaTest
INTERNAL ERROR: OpBranchConditional instruction's source parameters are missing
Is missing one or more source parameters:
34: OpPhi: Bool: tmp34 << [tmp24, lb5], [tmp33, lb25]
INTERNAL ERROR: OpBranchConditional instruction's source parameters are missing
Boolean uniforms aren't supported yet:
offset: 1, size: 1, Bool UseOverbright
INTERNAL ERROR: OpBranchConditional instruction's source parameters are missing
Boolean uniforms aren't supported yet:
offset: 2, size: 1, Bool UseFullbrightTex
INTERNAL ERROR: OpBranchConditional instruction's source parameters are missing
Reading uniforms with an offset that isn't a multiple of 32-bits in size isn't supported:
offset: 3, size: 16, FloatVector4 color
INTERNAL ERROR: ExtInstruction is missing parameters
INTERNAL ERROR: Store instruction's source parameter is incomplete:
OpStore: : tmp99 >> result
Warning: GLSL program failed to compile: ERROR: Code generation failed.
Error log:
Boolean uniforms aren't supported yet:
offset: 0, size: 1, Bool UseLightmapOnly
INTERNAL ERROR: OpBranchConditional instruction's source parameters are missing
Boolean uniforms aren't supported yet:
offset: 1, size: 1, Bool UseAlphaTest
INTERNAL ERROR: OpBranchConditional instruction's source parameters are missing
Is missing one or more source parameters:
41: OpPhi: Bool: tmp41 << [tmp31, lb26], [tmp40, lb32]
INTERNAL ERROR: OpBranchConditional instruction's source parameters are missing
Boolean uniforms aren't supported yet:
offset: 2, size: 1, Bool UseLightmapWide
INTERNAL ERROR: OpBranchConditional instruction's source parameters are missing
Boolean uniforms aren't supported yet:
offset: 3, size: 1, Bool UseOverbright
INTERNAL ERROR: OpBranchConditional instruction's source parameters are missing
Boolean uniforms aren't supported yet:
offset: 4, size: 1, Bool UseFullbrightTex
INTERNAL ERROR: OpBranchConditional instruction's source parameters are mi
Does anyone have similar issues?
Thanks
jarokuczi