1
0
forked from 0ad/0ad

trivialities: add extern, add assert to make sure oglInit called

This was SVN commit r1260.
This commit is contained in:
janwas 2004-10-19 17:49:12 +00:00
parent d30c7ef9aa
commit 0afc3c159d
2 changed files with 4 additions and 1 deletions

View File

@ -138,11 +138,14 @@ int ogl_get_gfx_info()
return 0;
}
const char* oglExtList()
{
assert(exts && "call oglInit before using this function");
return exts;
}
// call after each video mode change
void oglInit()
{

View File

@ -113,7 +113,7 @@ extern int ogl_get_gfx_info();
// return a NULL-terminated string (of unlimited length) containing
// a space-separated list of supported extensions.
const char* oglExtList();
extern const char* oglExtList();
#ifdef __cplusplus
}