Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-07-02 18:28:30 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-07-02 18:28:41 +0300
commit35481fde40c78e004230d7909e7b7d83438cc64e (patch)
tree639b68a64d33358749333f7dbdfd6829c7b06b9b /source/blender/windowmanager/intern/wm_draw.c
parenta4fe8ef236b65210ef04945be7f3936757015b7f (diff)
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.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_draw.c')
-rw-r--r--source/blender/windowmanager/intern/wm_draw.c4
1 files changed, 2 insertions, 2 deletions
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);