0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

linux-capture: Remove red background from texture

When a source window was not available, a red background was shown
instead. This was undesirable, and expected behavior would be for the
background to be transparent, enabling what exists behind the source
to be shown.
This commit is contained in:
Charles Ray Shisler III 2016-02-21 18:30:21 -08:00
parent 2bdc1e9d7c
commit 2e642fcc61

View File

@ -354,12 +354,7 @@ void XCompcapMain::updateSettings(obs_data_t *settings)
uint8_t *texData = new uint8_t[width() * height() * 4];
for (unsigned int i = 0; i < width() * height() * 4; i += 4) {
texData[i + 0] = p->swapRedBlue ? 0 : 0xFF;
texData[i + 1] = 0;
texData[i + 2] = p->swapRedBlue ? 0xFF : 0;
texData[i + 3] = 0xFF;
}
memset(texData, 0, width() * height() * 4);
const uint8_t* texDataArr[] = { texData, 0 };