diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2009-11-30 13:14:23 -0800 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-12-02 07:09:15 -0700 |
commit | 9b898f02e1e1846ca62c2b63e5be2ebf2bca9b43 (patch) | |
tree | e7781811aa72ccbcc9f268d231c6e612d32da580 | |
parent | 6d1b4204a6d18be9633f5020eff429140679c65b (diff) |
pointsprite: Fix grammar / spelling errors in log messages and comments
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
-rw-r--r-- | src/glean/tpointsprite.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/glean/tpointsprite.cpp b/src/glean/tpointsprite.cpp index 974bfc7..9c4ebee 100644 --- a/src/glean/tpointsprite.cpp +++ b/src/glean/tpointsprite.cpp @@ -55,9 +55,11 @@ static PFNGLPOINTPARAMETERFPROC glPointParameterf_func = NULL; //background color static GLfloat bgColor[4] = {0.0, 0.0, 0.0, 0.0}; -//mipmap texture's color, every texture partite to upper and lower part that -//has different colors -//for 1x1 texture, only lower part is used +// Partition each mipmap into two halves. The top half gets one color, and +// the bottom half gets a different color. Use a different pair of colors for +// each LOD. +// +// For the 1x1 LOD, only lower part (second color in the table) is used. static GLfloat texColor[6][2][4] = { {{1.0, 0.0, 0.0, 1.0}, {0.0, 1.0, 0.0, 1.0}}, // 32x32 {{0.0, 0.0, 1.0, 1.0}, {1.0, 1.0, 0.0, 1.0}}, // 16x16 @@ -146,7 +148,7 @@ PointSpriteTest::CheckDefaultState(MultiTestResult &r) if (enable != GL_FALSE) { env->log << name << "subcase FAIL: " - << "PointSprite should be disabled defaultlly\n"; + << "PointSprite should be disabled by default\n"; r.numFailed++; } else { r.numPassed++; @@ -369,7 +371,8 @@ PointSpriteTest::runOne(MultiTestResult &r, Window &w) if (maxPointSize > WINSIZE / 2) maxPointSize = WINSIZE / 2; - //primitive may be point or polygon which mode is GL_POINT + // Draw GL_POINTS primitives, and draw GL_POLYGON primitives with the + // polygon mode set to GL_POINT. for (primType = 0; primType < 2; primType ++) { for (coordOrigin = 0; coordOrigin < 2; coordOrigin++) |