Fix #133646: Grease Pencil: Crash when disabling simplified anti-aliasing
Uninitialized textures are bound when simplified anti-aliasing is disabled. The textures are initialized later. Fixing by referencing the textures similar to the other passes. Pull Request: https://projects.blender.org/blender/blender/pulls/133648
This commit is contained in:
@@ -24,9 +24,9 @@ void GPENCIL_antialiasing_init(GPENCIL_Instance *inst, GPENCIL_PrivateData *pd)
|
||||
pass.init();
|
||||
pass.state_set(DRW_STATE_WRITE_COLOR | DRW_STATE_BLEND_CUSTOM);
|
||||
pass.shader_set(GPENCIL_shader_antialiasing(2));
|
||||
pass.bind_texture("blendTex", inst->color_tx);
|
||||
pass.bind_texture("colorTex", inst->color_tx);
|
||||
pass.bind_texture("revealTex", inst->reveal_tx);
|
||||
pass.bind_texture("blendTex", &inst->color_tx);
|
||||
pass.bind_texture("colorTex", &inst->color_tx);
|
||||
pass.bind_texture("revealTex", &inst->reveal_tx);
|
||||
pass.push_constant("doAntiAliasing", false);
|
||||
pass.push_constant("onlyAlpha", pd->draw_wireframe);
|
||||
pass.push_constant("viewportMetrics", metrics);
|
||||
|
||||
Reference in New Issue
Block a user