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