fix OpenGL surface format stuff

This commit is contained in:
Gregory Wells
2025-08-18 01:07:03 -04:00
parent e973386511
commit 5213e0135a
2 changed files with 3 additions and 3 deletions

View File

@@ -1,12 +1,11 @@
#include "opengl_presentation_queue.h"
#include "surface/opengl_surface.h"
#include "textures/opengl_texture.h"
#include "stdio.h"
gnReturnCode createOpenGLPresentationQueue(gnPresentationQueueHandle presentationQueue, gnOutputDeviceHandle device, gnPresentationQueueInfo presentationInfo) {
presentationQueue->presentationQueue = malloc(sizeof(struct gnPlatformPresentationQueue_t));
uint32_t convertedFormat = glGryphnFormatToOpenGLFormat(presentationInfo.format.format);
presentationQueue->imageCount = presentationInfo.minImageCount;
presentationQueue->images = malloc(sizeof(gnTexture) * presentationInfo.minImageCount);
presentationQueue->presentationQueue->textures = GLuintArrayListCreate();

View File

@@ -2,8 +2,9 @@
typedef enum gnImageFormat {
GN_FORMAT_NONE,
GN_FORMAT_BGRA8_SRGB,
GN_FORMAT_BGRA8,
GN_FORMAT_BGRA8_SRGB,
GN_FORMAT_RGBA8,
GN_FORMAT_RGBA8_SRGB,
GN_FORMAT_D24S8_UINT,
GN_FORMAT_D32S8_UINT,