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:
authorMike Erwin <significant.bit@gmail.com>2017-05-18 22:25:03 +0300
committerMike Erwin <significant.bit@gmail.com>2017-05-19 01:30:23 +0300
commit7823957455fbdd0cc982a840b148dfbdc345f948 (patch)
treef90972b192096018490ab9ce1a4f8556b1fd28d1 /source/blender/makesrna
parent8cb3c7bdecd8f23925ca3d9c4bca3c8643f6d12f (diff)
remove GPU_geometry_shader_support, instanced_drawing_support queries
These are always supported now - instancing as of GL 3.1 - geometry shaders as of GL 3.2 The change to rna_scene.c could use some cleanup, since we don't really need a runtime query function.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_scene.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index f0f43b64f2f..c20e56b1015 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -2317,7 +2317,7 @@ static void rna_Stereo3dFormat_update(Main *UNUSED(bmain), Scene *UNUSED(scene),
static int rna_gpu_is_hq_supported_get(PointerRNA *UNUSED(ptr))
{
- return GPU_instanced_drawing_support() && GPU_geometry_shader_support();
+ return true;
}
static void rna_SceneCollection_name_set(PointerRNA *ptr, const char *value)
@@ -5921,6 +5921,7 @@ static void rna_def_gpu_dof_fx(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "High Quality", "Use high quality depth of field");
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL);
+ /* NOTE: high quality is always supported */
prop = RNA_def_property(srna, "is_hq_supported", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_funcs(prop, "rna_gpu_is_hq_supported_get", NULL);
RNA_def_property_clear_flag(prop, PROP_EDITABLE);