Don't use deprecated isFile in love.joystick.loadGamepadMappings (fixes #1391)

This commit is contained in:
Bart van Strien
2018-04-04 17:49:51 +02:00
parent 93372b87a8
commit 571503c02e
2 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -705,7 +705,7 @@ void OpenGL::setVertexAttributes(const vertex::Attributes &attributes, const ver
GLboolean normalized = GL_FALSE;
GLenum gltype = getGLVertexDataType(attrib.type, normalized);
const void *offsetpointer = BUFFER_OFFSET(bufferinfo.offset + attrib.offsetfromvertex);
const void *offsetpointer = reinterpret_cast<void*>(bufferinfo.offset + attrib.offsetfromvertex);
bindBuffer(BUFFER_VERTEX, (GLuint) bufferinfo.buffer->getHandle());
glVertexAttribPointer(i, attrib.components, gltype, normalized, attrib.stride, offsetpointer);