| 133 | } |
| 134 | |
| 135 | bool GLUniformCache::SetIntVector(const GLint* vec) |
| 136 | { |
| 137 | DEATH_ASSERT(uniform_ == nullptr || dataPointer_ != nullptr); |
| 138 | if (uniform_ == nullptr || dataPointer_ == nullptr || !CheckInt()) { |
| 139 | return false; |
| 140 | } |
| 141 | |
| 142 | isDirty_ = true; |
| 143 | std::memcpy(dataPointer_, vec, sizeof(GLint) * uniform_->GetComponentCount()); |
| 144 | return true; |
| 145 | } |
| 146 | |
| 147 | bool GLUniformCache::SetIntValue(GLint v0) |
| 148 | { |
no test coverage detected