mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-23 01:59:38 +08:00
fix bug #204: limit integer values to numbers which are representable using float
This commit is contained in:
parent
c8e1b679fa
commit
adacacb285
@ -57,7 +57,7 @@ using namespace Eigen;
|
||||
}
|
||||
|
||||
#define VERIFY_UNIFORMi(NAME,TYPE) { \
|
||||
TYPE value; value.setRandom(); \
|
||||
TYPE value = TYPE::Random().eval().cast<float>().cast<TYPE::Scalar>(); \
|
||||
TYPE data; \
|
||||
int loc = glGetUniformLocation(prg_id, #NAME); \
|
||||
VERIFY((loc!=-1) && "uniform not found"); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user