File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/platform/graphics/webgl Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -144,17 +144,17 @@ class WebglTexture {
144
144
break ;
145
145
case PIXELFORMAT_RGB565 :
146
146
this . _glFormat = gl . RGB ;
147
- this . _glInternalFormat = gl . RGB ;
147
+ this . _glInternalFormat = gl . RGB565 ;
148
148
this . _glPixelType = gl . UNSIGNED_SHORT_5_6_5 ;
149
149
break ;
150
150
case PIXELFORMAT_RGBA5551 :
151
151
this . _glFormat = gl . RGBA ;
152
- this . _glInternalFormat = gl . RGBA ;
152
+ this . _glInternalFormat = gl . RGB5_A1 ;
153
153
this . _glPixelType = gl . UNSIGNED_SHORT_5_5_5_1 ;
154
154
break ;
155
155
case PIXELFORMAT_RGBA4 :
156
156
this . _glFormat = gl . RGBA ;
157
- this . _glInternalFormat = gl . RGBA ;
157
+ this . _glInternalFormat = gl . RGBA4 ;
158
158
this . _glPixelType = gl . UNSIGNED_SHORT_4_4_4_4 ;
159
159
break ;
160
160
case PIXELFORMAT_RGB8 :
You can’t perform that action at this time.
0 commit comments