Commit 60a154f6 authored by Eric Bruneton's avatar Eric Bruneton
Browse files

Fixed compiler errors.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/ork/trunk@34 28599a00-4e59-401b-b2d8-d34d4661a6c9
parent a88ef2ba
......@@ -66,14 +66,14 @@ const char* FRAGMENT_SHADER_FLOAT = "\
const char* DRAW_INSTANCING = "\
#ifdef _VERTEX_\n\
layout(location=0) in vec4 pos;\n\
out flat int instance;\n\
flat out int instance;\n\
void main() { gl_Position = pos; instance = gl_InstanceID; }\n\
#endif\n\
#ifdef _GEOMETRY_\n\
layout(triangles) in;\n\
layout(triangle_strip, max_vertices = 3) out;\n\
in vec4 pos[];\n\
in flat int instance[];\n\
flat in int instance[];\n\
void main() {\n\
gl_Layer = instance[0];\n\
gl_Position = gl_in[0].gl_Position;\n\
......
......@@ -26,6 +26,7 @@
#include "ork/render/FrameBuffer.h"
using namespace ork;
using namespace std;
ptr<FrameBuffer> getFrameBuffer(RenderBuffer::RenderBufferFormat f, int w, int h);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment