Skip to content

Commit

Permalink
fix shape.textured=1 (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbellew authored Feb 16, 2021
1 parent c435012 commit 3cd8efa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/libprojectM/Renderer/Renderable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,13 @@ void Shape::Draw(RenderContext &context)
context.aspectRatio=1.0;
}
}

else
{
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, context.textureManager->getMainTexture()->texID);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
}

//Define the center point of the shape
buffer_data[0].color_r = r;
Expand Down

0 comments on commit 3cd8efa

Please sign in to comment.