summaryrefslogtreecommitdiff
path: root/src/gallium/tests
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-05-05 02:34:42 +0100
committerJosé Fonseca <jfonseca@vmware.com>2010-05-05 02:39:08 +0100
commitb2e343daab4a7621e2bd9bc4b2cbd2709370089c (patch)
tree6db1b63f905905a55a441180afd5eeaa8be59b99 /src/gallium/tests
parentddb0e18f6c5582d4d2cc59ffd16ad9c4639ed059 (diff)
tests/raw: Get it building with scons.
Diffstat (limited to 'src/gallium/tests')
-rw-r--r--src/gallium/tests/raw/SConscript3
-rw-r--r--src/gallium/tests/raw/clear.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/tests/raw/SConscript b/src/gallium/tests/raw/SConscript
index 073b97951e..1b172e070f 100644
--- a/src/gallium/tests/raw/SConscript
+++ b/src/gallium/tests/raw/SConscript
@@ -1,5 +1,8 @@
Import('*')
+if 'graw-xlib' not in env['winsys']:
+ Return()
+
env = env.Clone()
env.Prepend(LIBPATH = [graw.dir])
diff --git a/src/gallium/tests/raw/clear.c b/src/gallium/tests/raw/clear.c
index 706e3be372..52029008da 100644
--- a/src/gallium/tests/raw/clear.c
+++ b/src/gallium/tests/raw/clear.c
@@ -26,7 +26,7 @@ int main( int argc, char *argv[] )
struct pipe_context *pipe;
struct pipe_surface *surf;
struct pipe_framebuffer_state fb;
- struct pipe_texture *tex, templat;
+ struct pipe_resource *tex, templat;
void *window = NULL;
float clear_color[4] = {1,0,1,1};
int i;