fix OpenGL surface format stuff
This commit is contained in:
@@ -1,12 +1,11 @@
|
|||||||
#include "opengl_presentation_queue.h"
|
#include "opengl_presentation_queue.h"
|
||||||
#include "surface/opengl_surface.h"
|
#include "surface/opengl_surface.h"
|
||||||
#include "textures/opengl_texture.h"
|
#include "textures/opengl_texture.h"
|
||||||
|
#include "stdio.h"
|
||||||
|
|
||||||
gnReturnCode createOpenGLPresentationQueue(gnPresentationQueueHandle presentationQueue, gnOutputDeviceHandle device, gnPresentationQueueInfo presentationInfo) {
|
gnReturnCode createOpenGLPresentationQueue(gnPresentationQueueHandle presentationQueue, gnOutputDeviceHandle device, gnPresentationQueueInfo presentationInfo) {
|
||||||
presentationQueue->presentationQueue = malloc(sizeof(struct gnPlatformPresentationQueue_t));
|
presentationQueue->presentationQueue = malloc(sizeof(struct gnPlatformPresentationQueue_t));
|
||||||
|
|
||||||
uint32_t convertedFormat = glGryphnFormatToOpenGLFormat(presentationInfo.format.format);
|
|
||||||
|
|
||||||
presentationQueue->imageCount = presentationInfo.minImageCount;
|
presentationQueue->imageCount = presentationInfo.minImageCount;
|
||||||
presentationQueue->images = malloc(sizeof(gnTexture) * presentationInfo.minImageCount);
|
presentationQueue->images = malloc(sizeof(gnTexture) * presentationInfo.minImageCount);
|
||||||
presentationQueue->presentationQueue->textures = GLuintArrayListCreate();
|
presentationQueue->presentationQueue->textures = GLuintArrayListCreate();
|
||||||
|
@@ -2,8 +2,9 @@
|
|||||||
|
|
||||||
typedef enum gnImageFormat {
|
typedef enum gnImageFormat {
|
||||||
GN_FORMAT_NONE,
|
GN_FORMAT_NONE,
|
||||||
GN_FORMAT_BGRA8_SRGB,
|
|
||||||
GN_FORMAT_BGRA8,
|
GN_FORMAT_BGRA8,
|
||||||
|
GN_FORMAT_BGRA8_SRGB,
|
||||||
|
GN_FORMAT_RGBA8,
|
||||||
GN_FORMAT_RGBA8_SRGB,
|
GN_FORMAT_RGBA8_SRGB,
|
||||||
GN_FORMAT_D24S8_UINT,
|
GN_FORMAT_D24S8_UINT,
|
||||||
GN_FORMAT_D32S8_UINT,
|
GN_FORMAT_D32S8_UINT,
|
||||||
|
Reference in New Issue
Block a user