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