What steps will reproduce the problem?
1. make and run the Linux/Chapter10/oit example
2. Errors are printed on the console and the opened window is blank.
Linux/Chapter10/oit$ ./oit
The shader at basic.vs failed to compile with the following error:
0(16) : error C5060: out can't be used with non-varying vFragColor
0(17) : error C5060: out can't be used with non-varying vTexCoord
The shader at basic.vs failed to compile with the following error:
0(16) : error C5060: out can't be used with non-varying vFragColor
0(17) : error C5060: out can't be used with non-varying vTexCoord
A GL Error has occured : 1281
A GL Error has occured : 1281
A GL Error has occured : 1281
...
On adding the "varying" keyword to vFragColor and vTexCoord, as well as fixing
the same in other shaders, we run into this...
Linux/Chapter10/oit$ ./oit
The shader at oitResolve.fs failed to compile with the following error:
0(7) : warning C7532: global type sampler2DMS requires "#version 150" or later
0(7) : warning C0000: ... or #extension GL_ARB_texture_multisample : enable
0(28) : warning C7532: global function texelFetch requires "#version 150" or
later
0(28) : warning C0000: ... or #extension GL_ARB_texture_multisample : enable
0(74) : warning C7011: implicit cast from "int" to "float"
0(87) : warning C7502: OpenGL does not allow type suffix 'f' on constant
literals
0(22) : error C1008: undefined variable "textureSize2DMS"
The shader at msResolve.fs failed to compile with the following error:
0(9) : warning C7555: 'varying' is deprecated, use 'in/out' instead
0(14) : error C1008: undefined variable "textureSize2DMS"
A GL Error has occured : 1281
A GL Error has occured : 1281
3. I tries searching "textureSize2DMS" method on google, and the only place the
word seems to occur is in this code. Is this a typo?
What version of the product are you using? On what operating system?
Ubuntu 10.04, Nvidia drivers.
Please provide any additional information below.
I am guessing many of these errors occurred because of some deprecation that
has happened since the book was written. But I am really surprised to find no
mention of textureSize2DMS on the internet, except the few examples in this
book. Am I missing something very obvious here?
Any help would be appreciated.
Original issue reported on code.google.com by nag.ra...@gmail.com on 21 Sep 2012 at 6:56
Original issue reported on code.google.com by
nag.ra...@gmail.com
on 21 Sep 2012 at 6:56