"Fixed" this crash in debug. The attachment vector is sometimes empty! @Tleety

This commit is contained in:
2016-03-02 19:49:54 +01:00
parent fb9914d08a
commit 618e96da90
+1 -1
View File
@@ -70,7 +70,7 @@ void FrameBuffer::Generate()
} }
GLERROR("3"); GLERROR("3");
GLenum* bufferTextures = &attachments[0]; GLenum* bufferTextures = attachments.data();
glDrawBuffers(attachments.size(), bufferTextures); glDrawBuffers(attachments.size(), bufferTextures);
if (GLERROR("GLBufferAttachement error")) { if (GLERROR("GLBufferAttachement error")) {
printf(": AttachmentSize %i", attachments.size()); printf(": AttachmentSize %i", attachments.size());