mirror of
https://github.com/glest/glest-source.git
synced 2025-08-25 17:20:43 +02:00
- lots more code cleanup, using safe buffer size code to avoid buffer overflows
This commit is contained in:
@@ -220,7 +220,7 @@ void Renderer::init() {
|
||||
|
||||
if(glActiveTexture == NULL) {
|
||||
char szBuf[8096]="";
|
||||
sprintf(szBuf,"Error: glActiveTexture == NULL\nglActiveTexture is only supported if the GL version is 1.3 or greater,\nor if the ARB_multitexture extension is supported!");
|
||||
snprintf(szBuf,8096,"Error: glActiveTexture == NULL\nglActiveTexture is only supported if the GL version is 1.3 or greater,\nor if the ARB_multitexture extension is supported!");
|
||||
throw megaglest_runtime_error(szBuf);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user