Skip to content

Commit 8c8bc42

Browse files
committed
dumpMatrices to actually get texture and colour matrices
1 parent eef5e2e commit 8c8bc42

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,9 +1423,9 @@ sub dumpMatrices
14231423
my @model = $mm->retrieve(0,16);
14241424
glGetDoublev_c(GL_PROJECTION_MATRIX,$pm->ptr());
14251425
my @projection = $pm->retrieve(0,16);
1426-
glGetDoublev_c(GL_PROJECTION_MATRIX,$tm->ptr());
1426+
glGetDoublev_c(GL_TEXTURE_MATRIX,$tm->ptr());
14271427
my @texture = $tm->retrieve(0,16);
1428-
glGetDoublev_c(GL_PROJECTION_MATRIX,$cm->ptr());
1428+
glGetDoublev_c(GL_COLOR_MATRIX,$cm->ptr());
14291429
my @colours = $cm->retrieve(0,16);
14301430
for (['Model',\@model], ['Projection',\@projection], ['Texture',\@texture], ['Colour',\@colours]) {
14311431
printf "%-19s$_->[1][0], $_->[1][1], $_->[1][2], $_->[1][3]\n", "$_->[0] Matrix:";

0 commit comments

Comments
 (0)