16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-20 03:19:19 +02:00

indexed geometry tangent calculation, explicit optional material parameters, uint8 serialization fix

This commit is contained in:
tmj-fstate
2020-10-20 17:23:58 +02:00
parent ccfdf5e003
commit f9a8c1fbb3
7 changed files with 35 additions and 25 deletions

View File

@@ -132,7 +132,7 @@ glm::vec4 sn_utils::d_vec4( std::istream& s )
uint8_t sn_utils::d_uint8( std::istream& s ) {
uint8_t buf;
s.read((char*)buf, 1);
s.read((char*)&buf, 1);
return buf;
}
@@ -221,7 +221,7 @@ void sn_utils::ls_float64(std::ostream &s, double t)
void sn_utils::s_uint8(std::ostream &s, uint8_t v)
{
s.write((char*)v, 1);
s.write((char*)&v, 1);
}
void sn_utils::s_str(std::ostream &s, std::string v)