mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 06:08:30 +09:00
[Fix] (ProgramState): Fix the uniform-type-changing error in UniformValue::setData.
This commit is contained in:
@@ -464,7 +464,7 @@ void ProgramState::CleanupShaders_() {
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
void UniformValue::setData(GLenum uniformType, GLsizei numElements, const T* values) {
|
void UniformValue::setData(GLenum uniformType, GLsizei numElements, const T* values) {
|
||||||
MG_Util::Debug::LogD("MG_State: Program: UniformValue::setData called, type=0x%X, count=%d", uniformType, numElements);
|
MG_Util::Debug::LogD("MG_State: Program: UniformValue::setData called, type=0x%X, count=%d", uniformType, numElements);
|
||||||
type = uniformType;
|
//type = uniformType;
|
||||||
count = numElements;
|
count = numElements;
|
||||||
|
|
||||||
floatData.clear();
|
floatData.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user