# HG changeset patch # User alex # Date 1060823741 0 # Node ID a70a6c12bce58129c88af5dfa3deff29c273ef43 # Parent 9f04be0420811f13b2ad1e1e2c93e01b6507029d 1000l diff -r 9f04be042081 -r a70a6c12bce5 libvo/vo_gl2.c --- a/libvo/vo_gl2.c Thu Aug 14 01:05:49 2003 +0000 +++ b/libvo/vo_gl2.c Thu Aug 14 01:15:41 2003 +0000 @@ -107,7 +107,7 @@ if(*py>1.0) *py=1.0; } -static void initTextures() +static int initTextures() { unsigned char *line_1=0, *line_2=0, *mem_start=0; struct TexSquare *tsq=0; @@ -164,7 +164,7 @@ if(texture_width < 64 || texture_height < 64) { fprintf (stderr, "GLERROR: Give up .. usable texture size not avaiable, or texture config error !\n"); - exit(1); + return -1; } } } @@ -281,6 +281,8 @@ } /* for all texnumx */ } /* for all texnumy */ + + return 0; } static void resetTexturePointers(unsigned char *imageSource) @@ -894,7 +896,8 @@ texture_width=image_width; texture_height=image_height; - initTextures(); + if (initTextures() < 0) + return -1; glDisable(GL_BLEND); glDisable(GL_DEPTH_TEST);