Skip to content

Commit

Permalink
glTexImage2D to glTexSubImage2D for fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TyounanMOTI authored and hecomi committed Jun 13, 2018
1 parent 05a37c1 commit a2868a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Plugins/NativeTextureLoader/src/png_loader.cpp
Expand Up @@ -108,13 +108,13 @@ void PngLoader::UpdateTexture()
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glPixelStorei(GL_UNPACK_ALIGNMENT, m_alignment);
glTexImage2D(
glTexSubImage2D(
GL_TEXTURE_2D,
0,
GL_RGBA8,
0,
0,
m_width,
m_height,
0,
m_format,
GL_UNSIGNED_BYTE,
m_rawData.get());
Expand Down

0 comments on commit a2868a1

Please sign in to comment.