minor code cleanup

This commit is contained in:
itsmattkc
2022-05-31 20:14:07 -07:00
parent 44d81f6b00
commit eb9b1850ae
11 changed files with 55 additions and 46 deletions
+13
View File
@@ -72,8 +72,21 @@ TexturePtr Renderer::InterlaceTexture(TexturePtr top, TexturePtr bottom, const V
return output;
}
QVariant Renderer::GetDefaultShader()
{
if (default_shader_.isNull()) {
default_shader_ = CreateNativeShader(ShaderCode(QString(), QString()));
}
return default_shader_;
}
void Renderer::Destroy()
{
if (!default_shader_.isNull()) {
DestroyNativeShader(default_shader_);
}
color_cache_.clear();
if (!interlace_texture_.isNull()) {