Skip to content

enh(ui): SVideo does not prevent empty image display

Description

When providing an empty image (size (0,0,0) ) to a SVideo service, the service does not filter and forwards it to the textureManager which tests it and generates an error in particular in debug mode (ASSERT).

However empty images are often used as default ones, and this leads to various difficulties.

Here, an if(size[0] == 0 || size[1] == 0) test is added on the SVideo updating and return when it fails.

Closes #1038 (closed)

How to test it?

There is presently no ut on SVideo.

To test this start a SVideo adaptor with an uninitialized , and call the update slot. This can be done with a classical at the end of your configuration.

Edited by Michaël KUGLER

Merge request reports