mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-02 03:51:16 +00:00
Update legomodelpresenter.cpp (#264)
* Update legomodelpresenter.cpp * Update renderer.cpp
This commit is contained in:
parent
59105d74f8
commit
1a91547011
@ -98,7 +98,7 @@ MxResult LegoModelPresenter::CreateROI(MxDSChunk* p_chunk)
|
|||||||
SDL_strlwr(textureName);
|
SDL_strlwr(textureName);
|
||||||
|
|
||||||
if (textureName[0] == '^') {
|
if (textureName[0] == '^') {
|
||||||
memmove(textureName, textureName + 1, strlen(textureName));
|
memmove(textureName, textureName + 1, strlen(textureName + 1));
|
||||||
|
|
||||||
if (g_modelPresenterConfig) {
|
if (g_modelPresenterConfig) {
|
||||||
texture = new LegoTexture();
|
texture = new LegoTexture();
|
||||||
|
|||||||
@ -335,7 +335,8 @@ void OpenGL15Renderer::SubmitDraw(
|
|||||||
|
|
||||||
if (appearance.flat) {
|
if (appearance.flat) {
|
||||||
glShadeModel(GL_FLAT);
|
glShadeModel(GL_FLAT);
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
glShadeModel(GL_SMOOTH);
|
glShadeModel(GL_SMOOTH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user