From d41a285f4de211a1f76cac6e1b8bad81e7f534f2 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 26 Jan 2015 19:50:23 +0000 Subject: [PATCH] Skip built-in input attributes when copying attrib locations over --- renderdoc/driver/gl/gl_debug.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/renderdoc/driver/gl/gl_debug.cpp b/renderdoc/driver/gl/gl_debug.cpp index 141d4841e..2f9f0d033 100644 --- a/renderdoc/driver/gl/gl_debug.cpp +++ b/renderdoc/driver/gl/gl_debug.cpp @@ -1705,6 +1705,10 @@ void GLReplay::InitPostVSBuffers(uint32_t frameID, uint32_t eventID) // copy attrib locations from real program for(int32_t i=0; i < vsRefl->InputSig.count; i++) { + // skip built-ins + if(vsRefl->InputSig[i].systemValue != eAttr_None) + continue; + GLint idx = gl.glGetAttribLocation(vsProgSrc, vsRefl->InputSig[i].varName.elems); gl.glBindAttribLocation(vsProg, (GLuint)idx, vsRefl->InputSig[i].varName.elems); }