From 3179970a1c44724798ff371ae53fab20c6fd43be Mon Sep 17 00:00:00 2001 From: Julien Valentin Date: Mon, 1 Oct 2018 23:13:10 +0200 Subject: [PATCH] add version and required extension let a chance to work on intel chipset --- examples/osgdrawinstanced/osgdrawinstanced.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/osgdrawinstanced/osgdrawinstanced.cpp b/examples/osgdrawinstanced/osgdrawinstanced.cpp index 87d856e7d..f07e0dfac 100644 --- a/examples/osgdrawinstanced/osgdrawinstanced.cpp +++ b/examples/osgdrawinstanced/osgdrawinstanced.cpp @@ -59,6 +59,8 @@ createStateSet() // render each instance uniquely. gl_InstanceID will be in the range // 0 to numInstances-1 (1023 in our case). std::string vertexSource = + "#version 120\n" + "#extension GL_ARB_draw_instanced : enable\n" "uniform sampler2D osgLogo; \n" "uniform float osg_SimulationTime; \n"