diff options
Diffstat (limited to 'src/graphics/opengl/test/model_test.cpp')
-rw-r--r-- | src/graphics/opengl/test/model_test.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/graphics/opengl/test/model_test.cpp b/src/graphics/opengl/test/model_test.cpp index 3aad1b6..3e3d100 100644 --- a/src/graphics/opengl/test/model_test.cpp +++ b/src/graphics/opengl/test/model_test.cpp @@ -73,7 +73,6 @@ void LoadTexture(Gfx::CGLDevice *device, const std::string &name) texCreateParams.format = Gfx::TEX_IMG_BGRA; texCreateParams.minFilter = Gfx::TEX_MIN_FILTER_LINEAR_MIPMAP_LINEAR; texCreateParams.magFilter = Gfx::TEX_MAG_FILTER_LINEAR; - texCreateParams.wrapT = Gfx::TEX_WRAP_CLAMP; tex = device->CreateTexture(&img, texCreateParams); } @@ -139,16 +138,6 @@ void Render(Gfx::CGLDevice *device, Gfx::CModelFile *modelFile) device->SetTextureEnabled(0, true); device->SetTextureEnabled(1, true); - Gfx::TextureParams tex1Params; - tex1Params.alphaOperation = Gfx::TEX_MIX_OPER_MODULATE; - tex1Params.colorOperation = Gfx::TEX_MIX_OPER_MODULATE; - device->SetTextureParams(0, tex1Params); - - Gfx::TextureParams tex2Params; - tex2Params.alphaOperation = Gfx::TEX_MIX_OPER_MODULATE; - tex2Params.colorOperation = Gfx::TEX_MIX_OPER_MODULATE; - device->SetTextureParams(1, tex2Params); - device->SetMaterial(triangles[i].material); tri[0] = triangles[i].p1; |