resolve gl errors caused by different size buffers during 2d to 3d transition