Add gs_device_name function

This returns the name of the device, "Direct3D 11" or "OpenGL"
respectively.
This commit is contained in:
jp9000
2014-07-20 15:31:45 -07:00
parent eeb6fc6e9c
commit a446dd74af
7 changed files with 20 additions and 0 deletions

View File

@@ -182,6 +182,11 @@ void convert_sampler_info(struct gs_sampler_state *sampler,
info->max_anisotropy, sampler->max_anisotropy);
}
const char *device_name(void)
{
return "OpenGL";
}
const char *device_preprocessor_name(void)
{
return "_OPENGL";