summaryrefslogtreecommitdiff
path: root/src/ral
diff options
context:
space:
mode:
Diffstat (limited to 'src/ral')
-rw-r--r--src/ral/backends/opengl/backend_opengl.c3
-rw-r--r--src/ral/backends/opengl/backend_opengl.h2
-rw-r--r--src/ral/ral_types.h2
3 files changed, 4 insertions, 3 deletions
diff --git a/src/ral/backends/opengl/backend_opengl.c b/src/ral/backends/opengl/backend_opengl.c
index 7929a16..305ab36 100644
--- a/src/ral/backends/opengl/backend_opengl.c
+++ b/src/ral/backends/opengl/backend_opengl.c
@@ -57,7 +57,8 @@ bool GPU_Backend_Init(const char* window_name, struct GLFWwindow* window,
}
// All of these are no-ops in OpenGL
-void GPU_Backend_Shutdown() { /* TODO */ }
+void GPU_Backend_Shutdown() { /* TODO */
+}
bool GPU_Device_Create(GPU_Device* out_device) { return true; }
void GPU_Device_Destroy(GPU_Device* device) {}
bool GPU_Swapchain_Create(GPU_Swapchain* out_swapchain) { return true; }
diff --git a/src/ral/backends/opengl/backend_opengl.h b/src/ral/backends/opengl/backend_opengl.h
index b27d782..3e40945 100644
--- a/src/ral/backends/opengl/backend_opengl.h
+++ b/src/ral/backends/opengl/backend_opengl.h
@@ -53,7 +53,7 @@ typedef struct GPU_Buffer {
} id;
union {
u32 vao;
- u32 ubo_binding_point
+ u32 ubo_binding_point;
}; // Optional
char *name;
u64 size;
diff --git a/src/ral/ral_types.h b/src/ral/ral_types.h
index fa93cd5..c950fe2 100644
--- a/src/ral/ral_types.h
+++ b/src/ral/ral_types.h
@@ -21,7 +21,7 @@ CORE_DEFINE_HANDLE(ShaderHandle);
CORE_DEFINE_HANDLE(PipelineLayoutHandle);
CORE_DEFINE_HANDLE(PipelineHandle);
CORE_DEFINE_HANDLE(RenderpassHandle);
-#define INVALID_TEX_HANDLE ((TextureHandle){ .raw = 9999999 })
+#define INVALID_TEX_HANDLE ((TextureHandle){ .raw = 9999981 })
// --- Buffers
typedef enum GPU_BufferType {