Converted some static local variables to stack localvariables
This commit is contained in:
parent
2bc0988c98
commit
d6ae5e2d45
|
@ -80,7 +80,7 @@ bool isDebugEnabled(void) {
|
|||
|
||||
void printfDebugJava(JNIEnv *env, const char *format, ...) {
|
||||
#define BUFFER_SIZE 4000
|
||||
static char buffer[BUFFER_SIZE];
|
||||
char buffer[BUFFER_SIZE];
|
||||
jstring str;
|
||||
jclass org_lwjgl_LWJGLUtil_class;
|
||||
jmethodID log_method;
|
||||
|
|
|
@ -151,7 +151,7 @@ static void extgl_InitGLXSupportedExtensions(Display *disp, int screen, GLXExten
|
|||
|
||||
bool extgl_Open(JNIEnv *env) {
|
||||
#define BUFFER_SIZE 2000
|
||||
static char buffer[BUFFER_SIZE];
|
||||
char buffer[BUFFER_SIZE];
|
||||
if (lib_gl_handle != NULL)
|
||||
return true;
|
||||
lib_gl_handle = dlopen("libGL.so.1", RTLD_LAZY | RTLD_GLOBAL);
|
||||
|
|
Loading…
Reference in New Issue