(0) : fatal error C9999: Unexpected branch instruction

Started by
1 comment, last by V-man 12 years, 5 months ago
Hi All,

We've got an error with our GLSL shader running with specific card only. The log is:

> OpenGL Vendor: NVIDIA Corporation
> OpenGL Renderer: NVIDIA GeForce 7300 GT OpenGL Engine
> OpenGL Version: 2.1 NVIDIA-1.6.36
>
> [OK] OpenGL Shading Language is available!
>
> ***GLSL Compiler Log (Vertex Shader):
> [e06] Compiler log is not available!
> ***GLSL Compiler Log (Fragment Shader):
> [e06] Compiler log is not available!
> ***GLSL Linker Log:
> [e05] Linker log is not available!
> maxLights = 8, maxTextures = 8
>
> (0) : fatal error C9999: Unexpected branch instruction
> Cg compiler terminated due to fatal errorAbort trap
> logout
>
> [Process completed]

Any advice (what to check and where to find) is highly appreciated.

Thanks

Tom

Advertisement
And the shader code is? 7300 is a pretty old card with low specs. It could be anything.

NBA2K, Madden, Maneater, Killing Floor, Sims http://www.pawlowskipinball.com/pinballeternal


Any advice (what to check and where to find) is highly appreciated.


Start by looking at your shader. See if you can improve it.
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);

This topic is closed to new replies.

Advertisement