Improve logging code to dump more detaild rs object info. Fix bug with predefined elements not being recreated for contexts after one was destroyed. Add stricter type enforcement.
This commit is contained in:
@ -110,7 +110,7 @@ public class ProgramVertex extends BaseObj {
|
||||
mProjection = new Matrix();
|
||||
mTexture = new Matrix();
|
||||
|
||||
mAlloc = Allocation.createSized(rs, Element.USER_FLOAT, 48);
|
||||
mAlloc = Allocation.createSized(rs, Element.USER_F32(rs), 48);
|
||||
mAlloc.subData1D(MODELVIEW_OFFSET, 16, mModel.mMat);
|
||||
mAlloc.subData1D(PROJECTION_OFFSET, 16, mProjection.mMat);
|
||||
mAlloc.subData1D(TEXTURE_OFFSET, 16, mTexture.mMat);
|
||||
|
Reference in New Issue
Block a user