add version and required extension
let a chance to work on intel chipset
This commit is contained in:
parent
427ee6b0a2
commit
3179970a1c
@ -59,6 +59,8 @@ createStateSet()
|
|||||||
// render each instance uniquely. gl_InstanceID will be in the range
|
// render each instance uniquely. gl_InstanceID will be in the range
|
||||||
// 0 to numInstances-1 (1023 in our case).
|
// 0 to numInstances-1 (1023 in our case).
|
||||||
std::string vertexSource =
|
std::string vertexSource =
|
||||||
|
"#version 120\n"
|
||||||
|
"#extension GL_ARB_draw_instanced : enable\n"
|
||||||
"uniform sampler2D osgLogo; \n"
|
"uniform sampler2D osgLogo; \n"
|
||||||
"uniform float osg_SimulationTime; \n"
|
"uniform float osg_SimulationTime; \n"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user