Skip to content

Commit

Permalink
Textures working full GLES rendering!
Browse files Browse the repository at this point in the history
  • Loading branch information
z2442 committed Jan 26, 2025
1 parent e70c595 commit cd270c3
Show file tree
Hide file tree
Showing 3 changed files with 780 additions and 391 deletions.
8 changes: 4 additions & 4 deletions Source/SysGLES/Graphics/NativeTextureGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,23 +296,23 @@ void CNativeTexture::SetData( void * data, void * palette )
case TexFmt_5650:
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA,
mCorrectedWidth, mCorrectedHeight,
0, GL_RGB, GL_UNSIGNED_SHORT_5_6_5_REV, data );
0, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, data );
break;
case TexFmt_5551:
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA,
mCorrectedWidth, mCorrectedHeight,
0, GL_RGBA, GL_UNSIGNED_SHORT_1_5_5_5_REV, data );
0, GL_RGBA, GL_UNSIGNED_SHORT_5_5_5_1, data );
break;
case TexFmt_4444:
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA,
mCorrectedWidth, mCorrectedHeight,
0, GL_RGBA, GL_UNSIGNED_SHORT_4_4_4_4_REV, data );
0, GL_RGBA, GL_UNSIGNED_SHORT_4_4_4_4, data );

break;
case TexFmt_8888:
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA,
mCorrectedWidth, mCorrectedHeight,
0, GL_RGBA, GL_UNSIGNED_INT_8_8_8_8_REV, data );
0, GL_RGBA, GL_UNSIGNED_BYTE, data );

break;
case TexFmt_CI4_8888:
Expand Down
Loading

0 comments on commit cd270c3

Please sign in to comment.