summaryrefslogtreecommitdiff
path: root/drivers/gles3/rasterizer_gles3.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-12-21 14:20:35 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-12-21 14:22:17 -0300
commit37f558cd7b2308f6442f74c5265f12425d9887c8 (patch)
tree88901b350f7674013f7aecf8fddf3f1c3dbd7399 /drivers/gles3/rasterizer_gles3.cpp
parent72b844c34999d8615450798ed1f27ef24a72d8ce (diff)
Some BRDF fixes
Diffstat (limited to 'drivers/gles3/rasterizer_gles3.cpp')
-rw-r--r--drivers/gles3/rasterizer_gles3.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/drivers/gles3/rasterizer_gles3.cpp b/drivers/gles3/rasterizer_gles3.cpp
index 110436b9d5..cb42790e67 100644
--- a/drivers/gles3/rasterizer_gles3.cpp
+++ b/drivers/gles3/rasterizer_gles3.cpp
@@ -130,9 +130,9 @@ void RasterizerGLES3::initialize() {
ERR_PRINT("Error initializing GLAD");
}
- glEnable(_EXT_DEBUG_OUTPUT_SYNCHRONOUS_ARB);
+// glEnable(_EXT_DEBUG_OUTPUT_SYNCHRONOUS_ARB);
// glDebugMessageCallbackARB(_gl_debug_print, NULL);
- glEnable(_EXT_DEBUG_OUTPUT);
+// glEnable(_EXT_DEBUG_OUTPUT);
#endif
@@ -169,6 +169,14 @@ void RasterizerGLES3::begin_frame(){
storage->update_dirty_skeletons();
storage->update_dirty_shaders();
storage->update_dirty_materials();
+
+ storage->info.render_object_count=0;
+ storage->info.render_material_switch_count=0;
+ storage->info.render_surface_switch_count=0;
+ storage->info.render_shader_rebind_count=0;
+ storage->info.render_vertices_count=0;
+
+
scene->iteration();
@@ -277,6 +285,13 @@ void RasterizerGLES3::end_frame(){
canvas->draw_generic_textured_rect(Rect2(0,0,15,15),Rect2(0,0,1,1));
#endif
OS::get_singleton()->swap_buffers();
+
+/* print_line("objects: "+itos(storage->info.render_object_count));
+ print_line("material chages: "+itos(storage->info.render_material_switch_count));
+ print_line("surface changes: "+itos(storage->info.render_surface_switch_count));
+ print_line("shader changes: "+itos(storage->info.render_shader_rebind_count));
+ print_line("vertices: "+itos(storage->info.render_vertices_count));
+*/
}
void RasterizerGLES3::finalize(){