Update legomodelpresenter.cpp (#264)

* Update legomodelpresenter.cpp

* Update renderer.cpp
This commit is contained in:
Christian Semmler 2025-06-08 15:55:35 -07:00 committed by GitHub
parent 59105d74f8
commit 1a91547011
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -98,7 +98,7 @@ MxResult LegoModelPresenter::CreateROI(MxDSChunk* p_chunk)
SDL_strlwr(textureName);
if (textureName[0] == '^') {
memmove(textureName, textureName + 1, strlen(textureName));
memmove(textureName, textureName + 1, strlen(textureName + 1));
if (g_modelPresenterConfig) {
texture = new LegoTexture();

View File

@ -335,7 +335,8 @@ void OpenGL15Renderer::SubmitDraw(
if (appearance.flat) {
glShadeModel(GL_FLAT);
} else {
}
else {
glShadeModel(GL_SMOOTH);
}