gobj: Fix tex not being cleared initially with gl-immutable-texture-storage

Regression as of 494631ac54 and bfe595f4dc (#1168)
This commit is contained in:
rdb 2022-10-24 11:30:55 +02:00
parent ee1db0630a
commit b018d65da9
1 changed files with 3 additions and 0 deletions

View File

@ -265,6 +265,9 @@ set_clear_color(const LColor &color) {
CDWriter cdata(_cycler, true);
cdata->_clear_color = color;
cdata->_has_clear_color = true;
if (cdata->_image_modified == UpdateSeq::initial()) {
cdata->inc_image_modified();
}
}
/**