summaryrefslogtreecommitdiffstats
path: root/progs/perf/teximage.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-09-17 12:08:04 +0100
committerKeith Whitwell <[email protected]>2009-09-17 12:08:04 +0100
commite95a3a23dca9fc7aaa89237059d841f624b438db (patch)
treea255327884ee6ce838e83de48bc308d347ce8a69 /progs/perf/teximage.c
parent21caa29fbd332a2ee05a58df91e1664fbbc4e61f (diff)
progs/perf: add scons support, get working under mingw
Diffstat (limited to 'progs/perf/teximage.c')
-rw-r--r--progs/perf/teximage.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/progs/perf/teximage.c b/progs/perf/teximage.c
index b6d4f644dec..87275369228 100644
--- a/progs/perf/teximage.c
+++ b/progs/perf/teximage.c
@@ -50,8 +50,11 @@ static const struct vertex vertices[1] = {
{ 0.0, 0.0, 0.5, 0.5 },
};
-
+#if 0
#define VOFFSET(F) ((void *) offsetof(struct vertex, F))
+#else
+#define VOFFSET(F) ((void *) &((struct vertex *)NULL)->F)
+#endif
/** Called from test harness/main */
void
@@ -196,10 +199,10 @@ PerfDraw(void)
mbPerSec = rate * bytesPerImage / (1024.0 * 1024.0);
- printf(" glTex%sImage2D(%s %d x %d): "
- "%.1f images/sec, %.1f MB/sec\n",
- (subImage ? "Sub" : ""),
- SrcFormats[fmt].name, TexSize, TexSize, rate, mbPerSec);
+ perf_printf(" glTex%sImage2D(%s %d x %d): "
+ "%.1f images/sec, %.1f MB/sec\n",
+ (subImage ? "Sub" : ""),
+ SrcFormats[fmt].name, TexSize, TexSize, rate, mbPerSec);
free(TexImage);
}