early-access version 2847
This commit is contained in:
18
externals/SDL/test/testgles2_sdf.c
vendored
18
externals/SDL/test/testgles2_sdf.c
vendored
@@ -458,7 +458,6 @@ main(int argc, char *argv[])
|
||||
Uint32 then, now;
|
||||
int status;
|
||||
shader_data *data;
|
||||
char *path = NULL;
|
||||
|
||||
/* Initialize parameters */
|
||||
fsaa = 0;
|
||||
@@ -562,25 +561,14 @@ main(int argc, char *argv[])
|
||||
|
||||
/* Load SDF BMP image */
|
||||
#if 1
|
||||
path = GetNearbyFilename(f);
|
||||
|
||||
if (path == NULL)
|
||||
path = SDL_strdup(f);
|
||||
|
||||
if (path == NULL) {
|
||||
SDL_Log("out of memory\n");
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
tmp = SDL_LoadBMP(path);
|
||||
tmp = SDL_LoadBMP(f);
|
||||
if (tmp == NULL) {
|
||||
SDL_Log("missing image file: %s", path);
|
||||
SDL_Log("missing image file: %s", f);
|
||||
exit(-1);
|
||||
} else {
|
||||
SDL_Log("Load image file: %s", path);
|
||||
SDL_Log("Load image file: %s", f);
|
||||
}
|
||||
|
||||
SDL_free(path);
|
||||
#else
|
||||
/* Generate SDF image using SDL_ttf */
|
||||
|
||||
|
Reference in New Issue
Block a user