Validate GLSL names (fixes #21287)

This commit is contained in:
Anthony Ramine 2018-09-20 12:55:47 +02:00
parent d60b14bed5
commit 60c93cfabe
3 changed files with 68 additions and 79 deletions

View file

@ -77,8 +77,6 @@ pub fn is_gles() -> bool {
cfg!(any(target_os = "android", target_os = "ios"))
}
pub const MAX_UNIFORM_AND_ATTRIBUTE_LEN: usize = 256;
// From the GLES 2.0.25 spec, page 85:
//
// "If a texture that is currently bound to one of the targets