Browse Source

Fix Clang dev_mode build const string conversion

bitsawer 2 years ago
parent
commit
3c42496fb0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      platform/windows/gl_manager_windows.cpp

+ 1 - 1
platform/windows/gl_manager_windows.cpp

@@ -86,7 +86,7 @@ typedef int(__cdecl *NvAPI_DRS_SetSetting_t)(NvDRSSessionHandle, NvDRSProfileHan
 typedef int(__cdecl *NvAPI_DRS_FindProfileByName_t)(NvDRSSessionHandle, NvAPI_UnicodeString, NvDRSProfileHandle *);
 typedef int(__cdecl *NvAPI_DRS_FindProfileByName_t)(NvDRSSessionHandle, NvAPI_UnicodeString, NvDRSProfileHandle *);
 NvAPI_GetErrorMessage_t NvAPI_GetErrorMessage__;
 NvAPI_GetErrorMessage_t NvAPI_GetErrorMessage__;
 
 
-static bool nvapi_err_check(char *msg, int status) {
+static bool nvapi_err_check(const char *msg, int status) {
 	if (status != 0) {
 	if (status != 0) {
 		if (OS::get_singleton()->is_stdout_verbose()) {
 		if (OS::get_singleton()->is_stdout_verbose()) {
 			NvAPI_ShortString err_desc = { 0 };
 			NvAPI_ShortString err_desc = { 0 };