mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 03:28:19 +00:00
Add warning for missing integrated CPU driver
This commit is contained in:
parent
334b0fe757
commit
9cf82dfcbc
|
@ -50,6 +50,7 @@ enum EGFXWarningType
|
||||||
{
|
{
|
||||||
GFX_WARNING_TYPE_NONE = 0,
|
GFX_WARNING_TYPE_NONE = 0,
|
||||||
GFX_WARNING_TYPE_INIT_FAILED,
|
GFX_WARNING_TYPE_INIT_FAILED,
|
||||||
|
GFX_WARNING_TYPE_INIT_FAILED_MISSING_INTEGRATED_GPU_DRIVER,
|
||||||
GFX_WARNING_LOW_ON_MEMORY,
|
GFX_WARNING_LOW_ON_MEMORY,
|
||||||
GFX_WARNING_MISSING_EXTENSION,
|
GFX_WARNING_MISSING_EXTENSION,
|
||||||
GFX_WARNING_TYPE_UNKNOWN,
|
GFX_WARNING_TYPE_UNKNOWN,
|
||||||
|
|
|
@ -3727,7 +3727,7 @@ public:
|
||||||
}
|
}
|
||||||
if(DevicesCount == 0)
|
if(DevicesCount == 0)
|
||||||
{
|
{
|
||||||
SetError(EGFXErrorType::GFX_ERROR_TYPE_INIT, "No vulkan compatible devices found.");
|
SetWarning(EGFXWarningType::GFX_WARNING_TYPE_INIT_FAILED_MISSING_INTEGRATED_GPU_DRIVER, "No vulkan compatible devices found.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// make sure to use the correct amount of devices available
|
// make sure to use the correct amount of devices available
|
||||||
|
|
|
@ -311,6 +311,9 @@ void CCommandProcessor_SDL_GL::HandleWarning()
|
||||||
case GFX_WARNING_TYPE_INIT_FAILED:
|
case GFX_WARNING_TYPE_INIT_FAILED:
|
||||||
Warn.m_vWarnings.emplace_back(Localizable("Could not initialize the given graphics backend, reverting to the default backend now.", "Graphics error"));
|
Warn.m_vWarnings.emplace_back(Localizable("Could not initialize the given graphics backend, reverting to the default backend now.", "Graphics error"));
|
||||||
break;
|
break;
|
||||||
|
case GFX_WARNING_TYPE_INIT_FAILED_MISSING_INTEGRATED_GPU_DRIVER:
|
||||||
|
Warn.m_vWarnings.emplace_back(Localizable("Could not initialize the given graphics backend, this is probably caused because you didn't install the driver of the integrated graphics card.", "Graphics error"));
|
||||||
|
break;
|
||||||
case GFX_WARNING_MISSING_EXTENSION:
|
case GFX_WARNING_MISSING_EXTENSION:
|
||||||
// ignore this warning for now
|
// ignore this warning for now
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue