From 35481fde40c78e004230d7909e7b7d83438cc64e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Thu, 2 Jul 2020 17:28:30 +0200 Subject: GPUOffScreen: Remove the sample parameter This is because the DRW module is no longer compatible with drawing using MSAA. This also change the Python API. --- source/blender/windowmanager/intern/wm_draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/windowmanager/intern/wm_draw.c') diff --git a/source/blender/windowmanager/intern/wm_draw.c b/source/blender/windowmanager/intern/wm_draw.c index 3c2bc14837d..2b679dfefde 100644 --- a/source/blender/windowmanager/intern/wm_draw.c +++ b/source/blender/windowmanager/intern/wm_draw.c @@ -443,7 +443,7 @@ static void wm_draw_region_buffer_create(ARegion *region, bool stereo, bool use_ * depth or multisample buffers. 3D view creates own buffers with * the data it needs. */ GPUOffScreen *offscreen = GPU_offscreen_create( - region->winx, region->winy, 0, false, false, NULL); + region->winx, region->winy, false, false, NULL); if (!offscreen) { return; } @@ -861,7 +861,7 @@ static void wm_draw_window(bContext *C, wmWindow *win) * stereo methods, but it's less efficient than drawing directly. */ const int width = WM_window_pixels_x(win); const int height = WM_window_pixels_y(win); - GPUOffScreen *offscreen = GPU_offscreen_create(width, height, 0, false, false, NULL); + GPUOffScreen *offscreen = GPU_offscreen_create(width, height, false, false, NULL); if (offscreen) { GPUTexture *texture = GPU_offscreen_color_texture(offscreen); -- cgit v1.2.3