Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Richard Gobeille
EDuke32
Commits
cb6f5158
Commit
cb6f5158
authored
May 05, 2022
by
Dino Bollinger
Browse files
Engine: Fix a bug introduced with voxel caching in
fa3d6784
The texturecache file shouldn't be affected I think
parent
9c9518fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
source/build/src/texcache.cpp
View file @
cb6f5158
...
...
@@ -922,7 +922,7 @@ voxmodel_t* voxcache_fetchvoxmodel(const char* const cacheid)
voxcachedat_t
voxd
=
{};
size_t
vertexsize
,
indexsize
,
mytexsize
,
totalsize
;
voxmodel_t
*
vm
=
(
voxmodel_t
*
)
X
m
alloc
(
sizeof
(
voxmodel_t
));
voxmodel_t
*
vm
=
(
voxmodel_t
*
)
X
c
alloc
(
1
,
sizeof
(
voxmodel_t
));
texcache
.
dataFilePos
=
texcache
.
entries
[
i
]
->
offset
;
texcache_readdata
(
&
voxd
,
sizeof
(
voxd
));
...
...
source/build/src/voxmodel.cpp
View file @
cb6f5158
...
...
@@ -435,8 +435,7 @@ void voxvbofree(voxmodel_t *vm)
static
voxmodel_t
*
vox2poly
()
{
gvox
=
(
voxmodel_t
*
)
Xmalloc
(
sizeof
(
voxmodel_t
));
memset
(
gvox
,
0
,
sizeof
(
voxmodel_t
));
gvox
=
(
voxmodel_t
*
)
Xcalloc
(
1
,
sizeof
(
voxmodel_t
));
//x is largest dimension, y is 2nd largest dimension
int32_t
x
=
voxsiz
.
x
,
y
=
voxsiz
.
y
,
z
=
voxsiz
.
z
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment