@Override public JCGLTexture2DUpdateType createTextureUpdate2D( final JCGLTexture2DUsableType t, final JCGLTLTextureDataType data) { final JCGLTexture2DUpdateType u = JCGLTextureUpdates.newUpdateReplacingAll2D(t); final int tw = (int) t.width(); final int th = (int) t.height(); final long dw = data.width(); final long dh = data.height(); RangeCheck.checkGreaterEqualLong( (long) tw, "Texture width", dw, "Data width"); RangeCheck.checkGreaterEqualLong( (long) th, "Texture height", dh, "Data height"); populate( t.format(), data, u.data(), tw, th); return u; }