Merge pull request #3298 from Sonicadvance1/max_texture_buffer_size Make sure not to use a GL texture buffer past the max size.