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,