From 54a9a94ed2a9f74c9c6be267ea358e3422630e39 Mon Sep 17 00:00:00 2001 From: samuncle Date: Sat, 4 Jan 2014 20:34:38 +0000 Subject: [PATCH] Oups I forget to remove some debug printf :3 git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14907 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/graphics/material.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/graphics/material.cpp b/src/graphics/material.cpp index 206b97d8a..43fc695b8 100644 --- a/src/graphics/material.cpp +++ b/src/graphics/material.cpp @@ -219,7 +219,6 @@ Material::Material(const XMLNode *node, int index, bool deprecated) } else if (s == "skybox") { - printf("[sam] Coucou\n"); m_graphical_effect = GE_SKYBOX; } else if (s == "splatting") @@ -809,13 +808,9 @@ void Material::setMaterialProperties(video::SMaterial *m, scene::IMeshBuffer* m if(m_graphical_effect == GE_SKYBOX && irr_driver->isGLSL()) { - printf("[sam] Hello world :)\n"); ITexture* tex = irr_driver->getTexture("cloud_mask.png"); m->setTexture(1, tex); - if(m->getTexture(1) == NULL) - { - printf("[sam] Error :( \n"); - } + m->MaterialType = irr_driver->getShader(ES_SKYBOX); }