@@ -1061,7 +1061,7 @@ Texture2d::Texture2d( const Surface16u &surface, Format format )
10611061#if defined( CINDER_GL_ES )
10621062 initParams ( format, surface.hasAlpha () ? GL_RGBA : GL_RGB, GL_UNSIGNED_SHORT );
10631063#else
1064- initParams ( format, surface.hasAlpha () ? GL_RGBA : GL_RGB , GL_UNSIGNED_SHORT );
1064+ initParams ( format, surface.hasAlpha () ? GL_RGBA16 : GL_RGB16 , GL_UNSIGNED_SHORT );
10651065#endif
10661066
10671067 setData<uint16_t >( surface, true , 0 , ivec2 ( 0 , 0 ) );
@@ -1082,7 +1082,7 @@ Texture2d::Texture2d( const Channel16u &channel, Format format )
10821082 std::array<int ,4 > swizzleMask = { GL_RED, GL_RED, GL_RED, GL_ONE };
10831083 format.setSwizzleMask ( swizzleMask );
10841084 }
1085- initParams ( format, GL_RED , GL_UNSIGNED_SHORT );
1085+ initParams ( format, GL_R16 , GL_UNSIGNED_SHORT );
10861086#endif
10871087
10881088 setData<uint16_t >( channel, true , 0 , ivec2 ( 0 , 0 ) );
@@ -1120,7 +1120,7 @@ Texture2d::Texture2d( const Channel32f &channel, Format format )
11201120 std::array<int ,4 > swizzleMask = { GL_RED, GL_RED, GL_RED, GL_ONE };
11211121 format.setSwizzleMask ( swizzleMask );
11221122 }
1123- initParams ( format, GL_RED , GL_FLOAT );
1123+ initParams ( format, GL_R32F , GL_FLOAT );
11241124#endif
11251125
11261126 setData<float >( channel, true , 0 , ivec2 ( 0 , 0 ) );
0 commit comments