mesa: don't advertise bogus GL_ARB_shading_language_120 extension
[mesa.git] / src / mesa / main / formats.c
index 90449cc04f083ea571b453f348e614771e5415e3..9db9f1c56ead2536c23030ef1ba4f7cc5caa02c8 100644 (file)
@@ -26,6 +26,7 @@
 
 #include "imports.h"
 #include "formats.h"
+#include "mfeatures.h"
 
 
 /**
@@ -939,6 +940,18 @@ _mesa_is_format_compressed(gl_format format)
 }
 
 
+/**
+ * Determine if the given format represents a packed depth/stencil buffer.
+ */
+GLboolean
+_mesa_is_format_packed_depth_stencil(gl_format format)
+{
+   const struct gl_format_info *info = _mesa_get_format_info(format);
+
+   return info->BaseFormat == GL_DEPTH_STENCIL;
+}
+
+
 /**
  * Return color encoding for given format.
  * \return GL_LINEAR or GL_SRGB