Subject:
|
Spot the bug
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Mon, 4 Mar 2002 15:11:16 GMT
|
Viewed:
|
409 times
|
| |
| |
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] = inMatrix->value[i][j];
}
}
glMultMatrixf(&m[0]);
status = kQ3Success;
}
else if (mRendererType->IsQ3())
{
status = Q3MatrixTransform_Submit(inMatrix, mView);
ThrowIf_(status != kQ3Success);
}
return status;
So, BrickDraw3D has working OpenGL rendering mode now.
Ugh.
|
|
Message has 2 Replies: | | Re: Spot the bug
|
| (...) 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
|
| (...) Cool! Is there an appreciable speed difference? (...) I know how that goes. :) Steve (23 years ago, 4-Mar-02, to lugnet.cad.dev)
|
4 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|