bugClanLib - Bugs: bug #5250, CL_Sprite::set_color() not handled...

 
 

bug #5250: CL_Sprite::set_color() not handled in StateChecker

Submitted by:  Ingo Ruhnke <grumbel>
Submitted on:  Fri 12 Sep 2003 10:17:43 PM UTC  
 
Category: clanGLSeverity: 3 - Normal
Item Group: Incorrect BehaviourStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: 0.7-CVS
Operating System: NonePlanned Release: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 12 Sep 2003 10:17:43 PM UTC, original submission:

Code like this:

for(int i = 0; i < 15; ++i)
{
float red = 1.0f;
float green = (i/20.0f);
CL_Sprite sprite = bar;
sprite.set_color(red, green, 0, 1.0f);
sprite.draw(15 + (i * 10), 15);
}

results in all sprites having the same color, adding a

CL_Display::get_current_window()->get_gc()->flush();

at the end of the for-loop fixed it, so I guess its a bug in the statechecker.

Ingo Ruhnke <grumbel>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup