Browse Source

Doc++

pull/51/head
Vladimír Vondruš 12 years ago
parent
commit
f06495dc04
  1. 4
      doc/portability.dox

4
doc/portability.dox

@ -145,8 +145,8 @@ void main() {
It is often desirable to query extension presence based on actually used GLSL
version -- while the extension might be supported in the driver, it might not
be available in given GLSL version (e.g. causing compilation errors). You can
use @ref Context::isExtensionSupported(Version) to check that the extension
is present in given version:
use @ref Context::isExtensionSupported(Version) const to check that the
extension is present in given version:
@code
if(!Context::instance()->isExtensionSupported<Extensions::GL::ARB::explicit_attrib_location>(version)) {
bindAttributeLocation(Position::Location, "position");

Loading…
Cancel
Save