Remove spurious call to Py_DECREF

This commit is contained in:
Kovid Goyal 2017-12-06 10:13:39 +05:30
parent c90223e4c8
commit 466d96c167
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -94,7 +94,6 @@ send_sprite_to_gpu(unsigned int x, unsigned int y, unsigned int z, uint8_t *buf)
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
x *= global_state.cell_width; y *= global_state.cell_height;
glTexSubImage3D(GL_TEXTURE_2D_ARRAY, 0, x, y, z, global_state.cell_width, global_state.cell_height, 1, GL_RED, GL_UNSIGNED_BYTE, buf);
Py_DECREF(buf);
}
void