Merge pull request #46099 from lawnjelly/ewok_fix_valgrind
Batching - fix a couple of minor valgrind bugs.
This commit is contained in:
commit
2c3272ba79
|
@ -1063,6 +1063,10 @@ void RasterizerCanvasBaseGLES2::initialize() {
|
|||
|
||||
state.canvas_shader.init();
|
||||
|
||||
state.using_light_angle = false;
|
||||
state.using_large_vertex = false;
|
||||
state.using_modulate = false;
|
||||
|
||||
_set_texture_rect_mode(true);
|
||||
state.canvas_shader.set_conditional(CanvasShaderGLES2::USE_RGBA_SHADOWS, storage->config.use_rgba_2d_shadows);
|
||||
|
||||
|
|
|
@ -1900,7 +1900,7 @@ bool C_PREAMBLE::_prefill_rect(RasterizerCanvas::Item::CommandRect *rect, FillSt
|
|||
|
||||
// we need to treat color change separately because we need to count these
|
||||
// to decide whether to switch on the fly to colored vertices.
|
||||
if (!r_fill_state.curr_batch->color.equals(col)) {
|
||||
if (!change_batch && !r_fill_state.curr_batch->color.equals(col)) {
|
||||
change_batch = true;
|
||||
bdata.total_color_changes++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue