Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_image/space_image.c
| Show First 20 Lines • Show All 640 Lines • ▼ Show 20 Lines | static void image_main_region_draw(const bContext *C, ARegion *region) | ||||
| View2D *v2d = ®ion->v2d; | View2D *v2d = ®ion->v2d; | ||||
| // View2DScrollers *scrollers; | // View2DScrollers *scrollers; | ||||
| float col[3]; | float col[3]; | ||||
| /* XXX This is in order to draw UI batches with the DRW | /* XXX This is in order to draw UI batches with the DRW | ||||
| * old context since we now use it for drawing the entire area. */ | * old context since we now use it for drawing the entire area. */ | ||||
| gpu_batch_presets_reset(); | gpu_batch_presets_reset(); | ||||
| GPUViewport *viewport = | GPUViewport *viewport = region->draw_buffer->viewport; | ||||
| region->draw_buffer->viewport[region->draw_buffer->stereo ? sima->iuser.multiview_eye : 0]; | |||||
| DefaultFramebufferList *fbl = GPU_viewport_framebuffer_list_get(viewport); | DefaultFramebufferList *fbl = GPU_viewport_framebuffer_list_get(viewport); | ||||
| GPU_framebuffer_bind(fbl->default_fb); | GPU_framebuffer_bind(fbl->default_fb); | ||||
| GPU_clear_color(0.0f, 0.0f, 0.0f, 0.0f); | GPU_clear_color(0.0f, 0.0f, 0.0f, 0.0f); | ||||
| GPU_clear(GPU_COLOR_BIT); | GPU_clear(GPU_COLOR_BIT); | ||||
| GPU_framebuffer_bind(fbl->overlay_fb); | GPU_framebuffer_bind(fbl->overlay_fb); | ||||
| glDisable(GL_FRAMEBUFFER_SRGB); | glDisable(GL_FRAMEBUFFER_SRGB); | ||||
| ▲ Show 20 Lines • Show All 518 Lines • Show Last 20 Lines | |||||