Commits

vrld committed 189892f Draft

Possibly (code in issue does not fail on my machine) fix #486. Please test.

  • Participants
  • Parent commits 2fcc29f

Comments (0)

Files changed (1)

File src/modules/graphics/opengl/VertexBuffer.cpp

 
 void VBO::unmap()
 {
-	glBufferSubDataARB(getTarget(), 0, getSize(), mapped);
-	free(mapped);
-	mapped = 0;
+	if (mapped)
+	{
+		glBufferSubDataARB(getTarget(), 0, getSize(), mapped);
+		free(mapped);
+		mapped = 0;
+	}
 }
 
 void VBO::bind()