fix some bugs on linux
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#ifdef GN_PLATFORM_LINUX
|
||||
#include "gryphn_platform_linux.h"
|
||||
#include "gryphn_rendering_api.h"
|
||||
#include "utils/gryphn_bool.h"
|
||||
|
||||
gnRenderingAPI renderingAPIs[3] = {
|
||||
GN_RENDERINGAPI_VULKAN,
|
||||
@@ -14,8 +15,8 @@ gnRenderingAPI* gnGetSupportedRenderingAPIs(int* count) {
|
||||
}
|
||||
|
||||
gnBool gnSupportsRenderingAPI(gnRenderingAPI api) {
|
||||
for (int i = 0; i < 3; i++) if (api == renderingAPIs[i]) return gnTrue;
|
||||
return gnFalse;
|
||||
for (int i = 0; i < 3; i++) if (api == renderingAPIs[i]) return GN_TRUE;
|
||||
return GN_FALSE;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user