ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/shader.C
(Generate patch)

Comparing libgender/shader.C (file contents):
Revision 1.29 by root, Wed Nov 3 03:35:13 2004 UTC vs.
Revision 1.30 by root, Thu Nov 4 03:58:32 2004 UTC

179 uloc.clear (); 179 uloc.clear ();
180 } 180 }
181 181
182 void program_object_i::enable () 182 void program_object_i::enable ()
183 { 183 {
184 if (this != cur)
185 {
184 glUseProgramObjectARB (id); 186 glUseProgramObjectARB (id);
185 //TODO: set samplers here 187 //TODO: set samplers here?
186 cur = this; 188 cur = this;
189 }
187 } 190 }
188 191
189 void program_object_i::disable () 192 void program_object_i::disable ()
190 { 193 {
191 //TODO: clear samplers here 194 //TODO: clear samplers here?
192 glUseProgramObjectARB (0); 195 glUseProgramObjectARB (0);
193 cur = 0; 196 cur = 0;
194 } 197 }
195 198
196 static map<string, program_object> progcache; 199 static map<string, program_object> progcache;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines