diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-02-01 02:45:51 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-02-01 02:45:51 +0300 |
commit | 87bbb2d827064a4fd59ffc77cc2dcbc31f02ce4f (patch) | |
tree | 5d9ddb0e6859850825de07d18475797957d1a969 /source/blender/editors/space_node/node_draw.c | |
parent | 873f2c71252da872f3fd1d9aa2140e3067ba6890 (diff) |
WM Draw Methods now has a new option Automatic (default). This will
set the draw method to triple buffer or overlap depending on the
configuration. Ideally I could get all cases working well with triple
buffer but it's hard in practice. At the moment there are two cases
that use overlap instead:
* opensource ATI drives on linux
* windows software renderer
Also added a utility function to check GPU device/os/driver.
Diffstat (limited to 'source/blender/editors/space_node/node_draw.c')
-rw-r--r-- | source/blender/editors/space_node/node_draw.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c index 03bc8340810..27719f124a1 100644 --- a/source/blender/editors/space_node/node_draw.c +++ b/source/blender/editors/space_node/node_draw.c @@ -605,14 +605,12 @@ static void node_draw_preview(bNodePreview *preview, rctf *prv) } } -#ifdef __APPLE__ -// if(is_a_really_crappy_nvidia_card()) { XXX +// if(GPU_type_matches(GPU_DEVICE_NVIDIA, GPU_OS_MAC, GPU_DRIVER_OFFICIAL)) { XXX // float zoomx= curarea->winx/(float)(G.v2d->cur.xmax-G.v2d->cur.xmin); // float zoomy= curarea->winy/(float)(G.v2d->cur.ymax-G.v2d->cur.ymin); // glPixelZoom(zoomx*xscale, zoomy*yscale); // } // else -#endif glPixelZoom(xscale, yscale); glEnable(GL_BLEND); |