mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-03-20 06:15:18 +00:00
Textured shapes == success
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@387 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
@ -723,7 +723,11 @@ void Renderer::draw_shapes(PresetOutputs *presetOutputs) {
|
||||
if ( (*pos)->textured)
|
||||
{
|
||||
|
||||
|
||||
if ((*pos)->getImageUrl() !="")
|
||||
{
|
||||
GLuint tex = textureManager->getTexture((*pos)->getImageUrl());
|
||||
if (tex != 0) glBindTexture(GL_TEXTURE_2D, tex);
|
||||
}
|
||||
//glBindTexture(GL_TEXTURE_2D, texture);
|
||||
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user