mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-14 11:49:59 +01:00
BugFix change texture input Stream Sources
This commit is contained in:
@@ -511,8 +511,7 @@ GstClockTime Stream::position()
|
||||
void Stream::init_texture(guint index)
|
||||
{
|
||||
glActiveTexture(GL_TEXTURE0);
|
||||
if (textureindex_)
|
||||
glDeleteTextures(1, &textureindex_);
|
||||
if (textureindex_ < 1)
|
||||
glGenTextures(1, &textureindex_);
|
||||
glBindTexture(GL_TEXTURE_2D, textureindex_);
|
||||
glTexStorage2D(GL_TEXTURE_2D, 1, GL_RGBA8, width_, height_);
|
||||
|
||||
Reference in New Issue
Block a user