Skip to content

Commit

Permalink
Fix graphics driver warning when building structure
Browse files Browse the repository at this point in the history
It is only a spurious performance warning, but still,
nice not to have warnings.

Closes ticket:4592
  • Loading branch information
perim committed Jun 13, 2017
1 parent b1cb129 commit f2d71ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/terrain.cpp
Expand Up @@ -897,7 +897,7 @@ bool initTerrain()
debug(LOG_TERRAIN, "%i decals found", decalSize / 12);
glGenBuffers(1, &decalVBO);
glBindBuffer(GL_ARRAY_BUFFER, decalVBO);
glBufferData(GL_ARRAY_BUFFER, sizeof(DecalVertex)*decalSize, decaldata, GL_STATIC_DRAW);
glBufferData(GL_ARRAY_BUFFER, sizeof(DecalVertex)*decalSize, decaldata, GL_DYNAMIC_DRAW);
free(decaldata);
glBindBuffer(GL_ARRAY_BUFFER, 0);

Expand Down

0 comments on commit f2d71ee

Please sign in to comment.