unexpected '}' at token "}"

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


Post Reply
User avatar
spookyboo
Silver Sponsor
Silver Sponsor
Posts: 1141
Joined: Tue Jul 06, 2004 5:57 am
x 151
Contact:

unexpected '}' at token "}"

Post by spookyboo »

I've got the error below in GL3+. Everything works ok in 3D11

Code: Select all

GLSL compile log: 1610612864VertexShader_vs
0(76) : error C0000: syntax error, unexpected '}' at token "}"
0(80) : error C0000: syntax error, unexpected identifier, expecting "::" at token "InstanceBuffer"
This exact error occurs when I manually update a render texture (_beginUpdate, _update, _endUpdate).

I doublechecked the Hlms tree from Media and everything is there. Everything recompiled. I am using 2.1 commit 5a6fb35 of 24 june. Any idea?
zxz
Gremlin
Posts: 184
Joined: Sat Apr 16, 2016 9:25 pm
x 19

Re: unexpected '}' at token "}"

Post by zxz »

Have you added the new "Any" archives to the Hlms initialization? I think I got the same error when I was missing that.

There are a few more archives needed now, as can be seen in "Samples/2.0/Common/src/GraphicsSystem.cpp"
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5298
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1279
Contact:

Re: unexpected '}' at token "}"

Post by dark_sylinc »

Added to what zxz said, could you post the generated shader?
Thanks :)
User avatar
spookyboo
Silver Sponsor
Silver Sponsor
Posts: 1141
Joined: Tue Jul 06, 2004 5:57 am
x 151
Contact:

Re: unexpected '}' at token "}"

Post by spookyboo »

Yes, the Any archives were missing (GraphicsSystem::registerHlms). Thanks
Post Reply