1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Minor code cleanup in Utils::isExtensionSupported

This commit is contained in:
Sergey Lipskiy 2017-01-26 16:47:42 +07:00
parent f4974f6337
commit cbf504fb40

View File

@ -1,3 +1,4 @@
#include <assert.h>
#include <Types.h>
#include <Log.h>
#include "opengl_Utils.h"
@ -10,7 +11,8 @@ bool Utils::isExtensionSupported(const char *extension)
#ifdef GL_NUM_EXTENSIONS
GLint count = 0;
glGetIntegerv(GL_NUM_EXTENSIONS, &count);
for (u32 i = 0; i < count; ++i) {
assert(count >= 0);
for (GLuint i = 0; i < (GLuint)count; ++i) {
const char* name = (const char*)glGetStringi(GL_EXTENSIONS, i);
if (name == nullptr)
continue;