GPUPlatform: GL backend isolation

Part of the vulkan implementation T68990.

Pretty straight forward. Just move the GL code inside the GLBackend and
make the GPUPlatformGlobal a class object.
This commit is contained in:
2020-09-07 15:39:47 +02:00
parent 9cac181fbe
commit 360489c751
7 changed files with 263 additions and 185 deletions

View File

@@ -48,7 +48,6 @@ void GPU_init(void)
}
initialized = true;
gpu_platform_init();
gpu_extensions_init(); /* must come first */
gpu_codegen_init();
@@ -81,7 +80,6 @@ void GPU_exit(void)
gpu_codegen_exit();
gpu_extensions_exit();
gpu_platform_exit(); /* must come last */
initialized = false;
}