+ if (pixel_format == FORMAT_RG) {
+ internal_format = GL_RG32F;
+ } else {
+ internal_format = GL_RGBA32F;
+ }
+ } else if (type == GL_HALF_FLOAT) {
+ if (pixel_format == FORMAT_RG) {
+ internal_format = GL_RG16F;
+ } else {
+ internal_format = GL_RGBA16F;
+ }