X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fdeviceinfo.cpp;fp=source%2Fcore%2Fdeviceinfo.cpp;h=1526af36744d195690511737b7dc4fdfed1e02eb;hb=8e553af57b712051f47293c971671f4f6a939be2;hp=f91e44a9cdd32bbbba061f9478e38274b92e3eca;hpb=009918e76dda88b0cb68fdaa20c63d6e952af260;p=libs%2Fgl.git diff --git a/source/core/deviceinfo.cpp b/source/core/deviceinfo.cpp index f91e44a9..1526af36 100644 --- a/source/core/deviceinfo.cpp +++ b/source/core/deviceinfo.cpp @@ -1,6 +1,13 @@ +#include +#include +#include +#include +#include #include #include #include +#include +#include #include #include #include "deviceinfo.h" @@ -21,6 +28,22 @@ Limits::Limits() } +DeviceInfo::DeviceInfo() +{ + glsl_features.gl_api = get_gl_api(); + glsl_features.glsl_version = get_glsl_version(); + glsl_features.arb_enhanced_layouts = ARB_enhanced_layouts; + glsl_features.arb_explicit_attrib_location = ARB_explicit_attrib_location; + glsl_features.arb_explicit_uniform_location = ARB_explicit_uniform_location; + glsl_features.arb_gpu_shader5 = ARB_gpu_shader5; + glsl_features.arb_separate_shader_objects = ARB_separate_shader_objects; + glsl_features.arb_uniform_buffer_object = ARB_uniform_buffer_object; + glsl_features.ext_gpu_shader4 = EXT_gpu_shader4; + glsl_features.ext_texture_array = EXT_texture_array; + glsl_features.uniform_binding_range = limits.max_uniform_bindings; + glsl_features.texture_binding_range = limits.max_texture_bindings; +} + const DeviceInfo &DeviceInfo::get_global() { static DeviceInfo info;