Some GLES fixes in ResourcePool::create_2d_texture().