Daniele Bartolini 12 лет назад
Родитель
Сommit
e82e8d8a9b

+ 0 - 3
engine/renderers/RenderContext.h

@@ -243,9 +243,6 @@ struct RenderContext
 		sampler.sampler_id = texture;
 		sampler.flags |= SAMPLER_TEXTURE | flags;
 
-		Log::d("Setting texture: sampler = %d.%d, texture = %d.%d, unit = %d", sampler_uniform.id, sampler_uniform.index
-			, texture.id, texture.index, unit);
-
 		const uint32_t val = unit;
 		set_uniform(sampler_uniform, UniformType::INTEGER_1, &val, 1);
 	}

+ 0 - 4
engine/renderers/Renderer.h

@@ -576,8 +576,6 @@ public:
 	{
 		UniformType::Enum type;
 
-		uint32_t num = 0;
-
 		while ((type = (UniformType::Enum)cbuf.read()) != UniformType::END)
 		{
 			UniformId id;
@@ -587,8 +585,6 @@ public:
 			cbuf.read(&size, sizeof(uint32_t));
 			const void* data = cbuf.read(size);
 
-			Log::d("Updating uniform: number = %d, ID = %d.%d, size = %d, data = %d", num, id.id, id.index, size, *((int32_t*)data));
-			num++;
 			update_uniform_impl(id, size, data);
 		}
 

+ 2 - 2
engine/renderers/gl/GLRenderer.h

@@ -181,12 +181,12 @@ struct Uniform
 		m_data = default_allocator().allocate(size);
 		memset(m_data, 0, size);
 
-		Log::d("Uniform created, name = %s, type = %d, num = %d, size = %ld", m_name, type, num, size);
+		// Log::d("Uniform created, name = %s, type = %d, num = %d, size = %ld", m_name, type, num, size);
 	}
 
 	void update(size_t size, const void* data)
 	{
-		Log::d("Uniform updated, new size = %ld, new ptr = %d", size, *((int32_t*)data));
+		// Log::d("Uniform updated, new size = %ld, new ptr = %d", size, *((int32_t*)data));
 		memcpy(m_data, data, size);
 	}