minor fixes
This commit is contained in:
@ -145,13 +145,16 @@ destroy_GL_context(SWindowData *window_data) {
|
||||
}
|
||||
|
||||
//-------------------------------------
|
||||
#if defined(RGB)
|
||||
#undef RGB
|
||||
#endif
|
||||
|
||||
#define TEXTURE0 0x84C0 // [ Core in gl 1.3, gles1 1.0, gles2 2.0, glsc2 2.0, Provided by GL_ARB_multitexture (gl) ]
|
||||
#define RGB 0x1907 // [ Core in gl 1.0, gles1 1.0, gles2 2.0, glsc2 2.0 ]
|
||||
#define RGBA 0x1908 // [ Core in gl 1.0, gles1 1.0, gles2 2.0, glsc2 2.0 ]
|
||||
#define BGR 0x80E0 // [ Core in gl 1.2 ]
|
||||
#define BGRA 0x80E1 // [ Core in gl 1.2, Provided by GL_ARB_vertex_array_bgra (gl|glcore) ]
|
||||
|
||||
|
||||
//-------------------------------------
|
||||
void
|
||||
init_GL(SWindowData *window_data) {
|
||||
|
@ -2,8 +2,7 @@
|
||||
|
||||
#if defined(USE_OPENGL_API)
|
||||
|
||||
#include "WindowData.h"
|
||||
#include <stdbool.h>
|
||||
#include <WindowData.h>
|
||||
|
||||
bool create_GL_context(SWindowData *window_data);
|
||||
void destroy_GL_context(SWindowData *window_data);
|
||||
|
@ -5,6 +5,9 @@
|
||||
#if defined(USE_OPENGL_API)
|
||||
#include "gl/MiniFB_GL.h"
|
||||
#endif
|
||||
#if defined(_DEBUG) || defined(DEBUG)
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -1,7 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <MiniFB_enums.h>
|
||||
#include <stdint.h>
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
|
Reference in New Issue
Block a user