Color management refactor
[blender.git] / source / blender / editors / space_image / image_draw.c
index fa686608bc890afbc171a0e0f2f88a4a8a337f7f..a4211508ae4489f61ad553e6b26a5db5ea4e8ffe 100644 (file)
@@ -463,7 +463,7 @@ static void draw_image_buffer(wmWindow *win, SpaceImage *sima, ARegion *ar, Scen
                image_verify_buffer_float(ima, ibuf, color_manage);
 
                view_settings = IMB_view_settings_get_effective(win, &sima->view_settings);
-               display_buffer = IMB_display_buffer_acquire(ibuf, view_settings, win->display_device, &cache_handle);
+               display_buffer = IMB_display_buffer_acquire(ibuf, view_settings, &win->display_settings, &cache_handle);
 
                if (display_buffer)
                        glaDrawPixelsSafe(x, y, ibuf->x, ibuf->y, ibuf->x, GL_RGBA, GL_UNSIGNED_BYTE, display_buffer);