summaryrefslogtreecommitdiff
path: root/src/demos/rain.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/rain.cxx')
-rw-r--r--src/demos/rain.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/demos/rain.cxx b/src/demos/rain.cxx
index 60fc4146..9be461d3 100644
--- a/src/demos/rain.cxx
+++ b/src/demos/rain.cxx
@@ -309,7 +309,8 @@ static void inittextures(void)
glGenTextures(1,&groundid);
glBindTexture(GL_TEXTURE_2D,groundid);
- if(!(img=LoadRGBImage("../images/s128.rgb",&width,&height,&format))){
+ if(!(img=LoadRGBImage(DEMOS_DATA_DIR "s128.rgb",
+ &width,&height,&format))){
fprintf(stderr,"Error reading a texture.\n");
exit(-1);
}