mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 17:00:05 +00:00
Use GL_TEXTURE_2D_ARRAY to enable multiple texture atlases
This commit is contained in:
parent
922e875b07
commit
7198d1c7af
8 changed files with 36 additions and 15 deletions
|
|
@ -56,7 +56,7 @@ void DrawLayer::Render(const QMapLibreGL::CustomLayerRenderParameters& params)
|
|||
newTextureAtlasBuildCount != p->textureAtlasBuildCount_;
|
||||
|
||||
gl.glActiveTexture(GL_TEXTURE0);
|
||||
gl.glBindTexture(GL_TEXTURE_2D, p->textureAtlas_);
|
||||
gl.glBindTexture(GL_TEXTURE_2D_ARRAY, p->textureAtlas_);
|
||||
|
||||
for (auto& item : p->drawList_)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue