To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 7016
    Spot the bug —Erik Olson
   In this bit of code I wrote months ago, I finally discovered the bug. Or two. Can you? if (mRendererType->IsGL()) { // different 4x4 matrix convention requires transpose GLfloat m[16]; for (int j=0; j<4; j++) { for (int i=0; j<4; j++) { m[i*4+j] = (...) (23 years ago, 4-Mar-02, to lugnet.cad.dev)
   
        Re: Spot the bug —Lars C. Hassing
     (...) Use i i.s.o. j - it's easy when you know where to look ;-) (...) Wish I could see it... /Lars (23 years ago, 4-Mar-02, to lugnet.cad.dev)
   
        Re: Spot the bug —Steve Bliss
   (...) Cool! Is there an appreciable speed difference? (...) I know how that goes. :) Steve (23 years ago, 4-Mar-02, to lugnet.cad.dev)
   
        Re: Spot the bug —Erik Olson
   (...) I don't see one yet. But, I have not yet turned on display lists, vertex arrays, or cached normals, all of which I wrote code for while reading the reference manual as far back as June. Never ever write hundreds of lines of code before testing (...) (23 years ago, 4-Mar-02, to lugnet.cad.dev)
 

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR