projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GLX: Change resulting from previous commit
[mesa.git]
/
src
/
glx
/
x11
/
indirect_transpose_matrix.c
diff --git
a/src/glx/x11/indirect_transpose_matrix.c
b/src/glx/x11/indirect_transpose_matrix.c
index 2144410e5ace3fae3e1f1f4b034b758026ee1933..618db9f5d4ff1d219a215bc976739931d3ac7a7e 100644
(file)
--- a/
src/glx/x11/indirect_transpose_matrix.c
+++ b/
src/glx/x11/indirect_transpose_matrix.c
@@
-25,59
+25,61
@@
#include <GL/gl.h>
#include "indirect.h"
#include <GL/gl.h>
#include "indirect.h"
-static void TransposeMatrixf(const GLfloat s[16], GLfloat d[16])
+static void
+TransposeMatrixf(const GLfloat s[16], GLfloat d[16])
{
{
-
int i, j;
-
for (i = 0; i < 4; i++) {
-
for (j = 0; j < 4; j++) {
-
d[i*4+j] = s[j*4+
i];
-
}
-
}
+ int i, j;
+ for (i = 0; i < 4; i++) {
+ for (j = 0; j < 4; j++) {
+
d[i * 4 + j] = s[j * 4 +
i];
+ }
+ }
}
}
-static void TransposeMatrixd(const GLdouble s[16], GLdouble d[16])
+static void
+TransposeMatrixd(const GLdouble s[16], GLdouble d[16])
{
{
-
int i, j;
-
for (i = 0; i < 4; i++) {
-
for (j = 0; j < 4; j++) {
-
d[i*4+j] = s[j*4+
i];
-
}
-
}
+ int i, j;
+ for (i = 0; i < 4; i++) {
+ for (j = 0; j < 4; j++) {
+
d[i * 4 + j] = s[j * 4 +
i];
+ }
+ }
}
void
}
void
-__indirect_glLoadTransposeMatrixdARB(
const GLdouble * m
)
+__indirect_glLoadTransposeMatrixdARB(
const GLdouble * m
)
{
GLdouble mt[16];
{
GLdouble mt[16];
-
- TransposeMatrixd(
m, mt
);
- __indirect_glLoadMatrixd(
mt
);
+
+ TransposeMatrixd(
m, mt
);
+ __indirect_glLoadMatrixd(
mt
);
}
void
}
void
-__indirect_glLoadTransposeMatrixfARB(
const GLfloat * m
)
+__indirect_glLoadTransposeMatrixfARB(
const GLfloat * m
)
{
GLfloat mt[16];
{
GLfloat mt[16];
- TransposeMatrixf(
m, mt
);
- __indirect_glLoadMatrixf(
mt
);
+ TransposeMatrixf(
m, mt
);
+ __indirect_glLoadMatrixf(
mt
);
}
void
}
void
-__indirect_glMultTransposeMatrixdARB(
const GLdouble * m
)
+__indirect_glMultTransposeMatrixdARB(
const GLdouble * m
)
{
GLdouble mt[16];
{
GLdouble mt[16];
-
- TransposeMatrixd(
m, mt
);
- __indirect_glMultMatrixd(
mt
);
+
+ TransposeMatrixd(
m, mt
);
+ __indirect_glMultMatrixd(
mt
);
}
void
}
void
-__indirect_glMultTransposeMatrixfARB(
const GLfloat * m
)
+__indirect_glMultTransposeMatrixfARB(
const GLfloat * m
)
{
GLfloat mt[16];
{
GLfloat mt[16];
- TransposeMatrixf(
m, mt
);
- __indirect_glMultMatrixf(
mt
);
+ TransposeMatrixf(
m, mt
);
+ __indirect_glMultMatrixf(
mt
);
}
}