trivialities: add extern, add assert to make sure oglInit called
This was SVN commit r1260.
This commit is contained in:
parent
d30c7ef9aa
commit
0afc3c159d
@ -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()
|
||||
{
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user