From 5213e0135a01cbc1a67b07ae6f7b223ecc8ec2be Mon Sep 17 00:00:00 2001 From: Gregory Wells Date: Mon, 18 Aug 2025 01:07:03 -0400 Subject: [PATCH] fix OpenGL surface format stuff --- .../opengl/src/presentation_queue/opengl_presentation_queue.c | 3 +-- projects/core/gryphn_image_format.h | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/apis/opengl/src/presentation_queue/opengl_presentation_queue.c b/projects/apis/opengl/src/presentation_queue/opengl_presentation_queue.c index 638bf39..56065db 100644 --- a/projects/apis/opengl/src/presentation_queue/opengl_presentation_queue.c +++ b/projects/apis/opengl/src/presentation_queue/opengl_presentation_queue.c @@ -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(); diff --git a/projects/core/gryphn_image_format.h b/projects/core/gryphn_image_format.h index 1a1b708..bfbde24 100644 --- a/projects/core/gryphn_image_format.h +++ b/projects/core/gryphn_image_format.h @@ -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,