From a41b4a2ea1b62b6db72b14ebf0d60bf4098cfc72 Mon Sep 17 00:00:00 2001 From: aignacio_sf <> Date: Wed, 17 Sep 2008 19:44:58 +0000 Subject: [PATCH] Remove some very old debug code. --- panda/src/dxgsg9/dxShaderContext9.cxx | 32 --------------------- panda/src/dxgsg9/dxVertexBufferContext9.cxx | 17 +---------- 2 files changed, 1 insertion(+), 48 deletions(-) diff --git a/panda/src/dxgsg9/dxShaderContext9.cxx b/panda/src/dxgsg9/dxShaderContext9.cxx index ee7160ff1f..d24eed4092 100644 --- a/panda/src/dxgsg9/dxShaderContext9.cxx +++ b/panda/src/dxgsg9/dxShaderContext9.cxx @@ -199,8 +199,6 @@ bind(GSG *gsg) { bind_state = false; #ifdef HAVE_CG if (_cg_context) { - DBG_SH5 dxgsg9_cat.debug ( ) << "SHADER: bind \n"; DBG_E - // clear the last cached FVF to make sure the next SetFVF call goes through gsg -> _last_fvf = 0; @@ -250,9 +248,6 @@ unbind(GSG *gsg) { #ifdef HAVE_CG if (_cg_context) { - - DBG_SH5 dxgsg9_cat.debug ( ) << "SHADER: unbind \n"; DBG_E - HRESULT hr; hr = gsg -> _d3d_device -> SetVertexShader (NULL); @@ -330,15 +325,6 @@ issue_parameters(GSG *gsg, int altered) data = temp_matrix.get_data(); hr = cgD3D9SetUniform (p, data); - - DBG_SH2 - dxgsg9_cat.debug ( ) << "Shader::SMP_whole MATRIX \n" << - data[ 0] << " " << data[ 1] << " " << data[ 2] << " " << data[ 3] << "\n" << - data[ 4] << " " << data[ 5] << " " << data[ 6] << " " << data[ 7] << "\n" << - data[ 8] << " " << data[ 9] << " " << data[10] << " " << data[11] << "\n" << - data[12] << " " << data[13] << " " << data[14] << " " << data[15] << "\n"; - DBG_E - break; case Shader::SMP_transpose: @@ -606,16 +592,6 @@ update_shader_vertex_arrays(CLP(ShaderContext) *prev, GSG *gsg) dxgsg9_cat.error ( ) << "VE ERROR: unsupported vertex element " << name -> get_name ( ) << "\n"; } - DBG_SH2 dxgsg9_cat.debug ( ) << "SHADER: update_shader_vertex_arrays " << i << "\n"; DBG_E - DBG_SH2 dxgsg9_cat.debug ( ) - << "\n name " << name -> get_name ( ) - << " num_values " << num_values - << " numeric_type " << numeric_type - << " start " << start - << " stride " << stride - << "\n"; - DBG_E - } else { dxgsg9_cat.error ( ) << "get_array_info ( ) failed for shader " @@ -642,11 +618,6 @@ update_shader_vertex_arrays(CLP(ShaderContext) *prev, GSG *gsg) dxgsg9_cat.debug() << "|||||cgD3D9ValidateVertexDeclaration succeeded\n"; } else { - DBG_SH2 - dxgsg9_cat.error() << "********************************************\n"; - dxgsg9_cat.error() << "***cgD3D9ValidateVertexDeclaration failed***\n"; - dxgsg9_cat.error() << "********************************************\n"; - DBG_E } } else { @@ -654,9 +625,6 @@ update_shader_vertex_arrays(CLP(ShaderContext) *prev, GSG *gsg) } _vertex_size = vertex_element_array -> offset; - - DBG_SH2 dxgsg9_cat.debug ( ) << "SHADER: vertex size " << _vertex_size << "\n"; DBG_E - _vertex_element_array = vertex_element_array; } else { diff --git a/panda/src/dxgsg9/dxVertexBufferContext9.cxx b/panda/src/dxgsg9/dxVertexBufferContext9.cxx index 820ac763b0..18f47efe7d 100755 --- a/panda/src/dxgsg9/dxVertexBufferContext9.cxx +++ b/panda/src/dxgsg9/dxVertexBufferContext9.cxx @@ -131,27 +131,12 @@ DXVertexBufferContext9(PreparedGraphicsObjects *pgo, GeomVertexArrayData *data, vertex_element_type -> index = vertex_element_type_counter_array [vertex_element_type -> vs_input_type]; vertex_element_type_counter_array [vertex_element_type -> vs_input_type]++; - // SHADER ISSUE: STREAM INDEX ALWAYS 0 FOR VERTEX BUFFER ??? + // SHADER ISSUE: STREAM INDEX ALWAYS 0 FOR VERTEX BUFFER ??? vertex_element_type -> stream = 0; vertex_element_type -> offset = array_format -> get_column(index) -> get_start ( ); - DBG_VEA dxgsg9_cat.debug() - << "INFO VertexElementArray " << index - << " " << name -> get_name ( ) - << " VS INPUT TYPE " << vertex_element_type -> vs_input_type - << " index " << vertex_element_type -> index - << " offset " << vertex_element_type -> offset - << "\n"; - DBG_E - vertex_element_type++; } - - DBG_VEA dxgsg9_cat.debug() - << "INFO stride " << array_format -> get_stride ( ) - << " total bytes " << array_format-> get_total_bytes ( ) - << "\n"; - DBG_E } _vertex_element_type_array = vertex_element_type_array;