Fix OSX build

This commit is contained in:
Howard Su
2020-10-22 08:28:43 +08:00
parent fbd7321b48
commit 4bf88739b5
5 changed files with 66 additions and 8 deletions

View File

@ -104,8 +104,6 @@ namespace ImGui {
viewBandwidth = 1.0;
wholeBandwidth = 1.0;
glGenTextures(1, &textureId);
updatePallette(COLOR_MAP, 13);
}
@ -363,6 +361,7 @@ namespace ImGui {
}
void WaterFall::updateWaterfallTexture() {
glGenTextures(1, &textureId);
glBindTexture(GL_TEXTURE_2D, textureId);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);