Move to use the GPU API instead OpenGL #23

Merged
Bogdan Nagirniak merged 9 commits from BLEN-371 into hydra-render 2023-04-07 13:28:49 +02:00
Showing only changes of commit 1138a9621f - Show all commits

View File

@ -196,7 +196,7 @@ void FinalEngineGL::render(Depsgraph *depsgraph)
std::vector<float> &pixels = render_images["Combined"];
GPUFrameBuffer *framebuffer = GPU_framebuffer_create("fbHydraRenderFinal");
GPUTexture *texture = GPU_texture_create_2d("texHydraRenderViewport",
GPUTexture *texture = GPU_texture_create_2d("texHydraRenderFinal",
res[0],
res[1],
1,
@ -209,7 +209,7 @@ void FinalEngineGL::render(Depsgraph *depsgraph)
GPU_framebuffer_bind(framebuffer);
float clear_color[4] = {0.0, 0.0, 0.0, 0.0};
GPU_framebuffer_clear_color_depth(framebuffer, clear_color, 0.0);
GPU_framebuffer_clear_color_depth(framebuffer, clear_color, 1.0);
{
// Release the GIL before calling into hydra, in case any hydra plugins call into python.