From 82ec2690c33d3295aa62189bd8f79a74f3de31b1 Mon Sep 17 00:00:00 2001
From: stefan <stefan@5a81b35b-ba03-0410-adc8-b2c5c5119f08>
Date: Fri, 5 Mar 2010 15:59:41 +0000
Subject: [PATCH] Fix for scene (build error)

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@1775 5a81b35b-ba03-0410-adc8-b2c5c5119f08
---
 modules/gfx/src/scene.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gfx/src/scene.cc b/modules/gfx/src/scene.cc
index 43aed4a89..1b7304b5c 100644
--- a/modules/gfx/src/scene.cc
+++ b/modules/gfx/src/scene.cc
@@ -251,7 +251,7 @@ void Scene::InitGL()
   Shader::Instance().Setup();
   Shader::Instance().Activate("fraglight");
 
-  glGenTextures(1,texture_id_);
+  glGenTextures(1,&texture_id_);
 #endif
 
   prep_glyphs();
@@ -1427,7 +1427,7 @@ void Scene::prep_shadow_map()
 
   // now get the shadow map
   glActiveTexture(GL_TEXTURE0);
-  glBindTexture(GL_TEXTURE_2D, texture_id_[0]);
+  glBindTexture(GL_TEXTURE_2D, texture_id_);
 
   glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT,
                    0,0, smap_size,smap_size, 0);
-- 
GitLab