Browse Source

Fix a warning and an error

Happened because I compiled on windows and it only compiled
windows-specific code.
jp9000 11 years ago
parent
commit
429195aa6f
2 changed files with 3 additions and 1 deletions
  1. 2 0
      libobs-opengl/gl-stagesurf.c
  2. 1 1
      obs/obs-app.cpp

+ 2 - 0
libobs-opengl/gl-stagesurf.c

@@ -178,6 +178,8 @@ failed:
 	gl_bind_buffer(GL_PIXEL_PACK_BUFFER, 0);
 	gl_bind_texture(GL_TEXTURE_2D, 0);
 	blog(LOG_ERROR, "device_stage_texture (GL) failed");
+
+	UNUSED_PARAMETER(device);
 }
 
 #endif

+ 1 - 1
obs/obs-app.cpp

@@ -49,7 +49,7 @@ static void do_log(int log_level, const char *msg, va_list args)
 	vprintf(msg, args);
 	printf("\n");
 
-	UNUSED_PARAMETER(level);
+	UNUSED_PARAMETER(log_level);
 #endif
 }