mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-07-22 07:12:04 +00:00
[client] clean up manual versions of ARRAY_LENGTH macro
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "interface/renderer.h"
|
||||
|
||||
#include "common/util.h"
|
||||
#include "common/array.h"
|
||||
#include "common/debug.h"
|
||||
#include "common/KVMFR.h"
|
||||
#include "common/option.h"
|
||||
@@ -892,7 +893,7 @@ static bool egl_renderStartup(LG_Renderer * renderer, bool useDMA)
|
||||
const char * configDesc = NULL;
|
||||
int chosen = -1;
|
||||
|
||||
for (int i = 0; i < (int)(sizeof(configs) / sizeof(configs[0])); ++i)
|
||||
for (int i = 0; i < (int)ARRAY_LENGTH(configs); ++i)
|
||||
{
|
||||
if (configs[i].componentType == EGL_COLOR_COMPONENT_TYPE_FLOAT_EXT &&
|
||||
!hasFloatConfigs)
|
||||
|
||||
Reference in New Issue
Block a user