"Fixed" this crash in debug. The attachment vector is sometimes empty! @Tleety
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user