Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
CAMP
campvis-public
Commits
b2472508
Commit
b2472508
authored
Mar 29, 2017
by
Jakob Weiss
Browse files
Fixed TextureManager assertions
parent
3f555763
Changes
1
Hide whitespace changes
Inline
Side-by-side
ext/cgt/texturemanager.cpp
View file @
b2472508
...
...
@@ -139,8 +139,8 @@ GLuint cgt::TextureManager::generateId(GLenum type, const cgt::svec3 & dimension
cache_key_t
cacheKey
{
type
,
dimensions
.
x
,
dimensions
.
y
,
dimensions
.
z
,
internalFormat
};
cgtAssert
(
cgt
::
hmul
(
dimensions
)
>
0
,
"At least one dimension is zero!"
);
cgtAssert
(
type
=
=
GL_TEXTURE_1D
&&
dimensions
.
y
==
1
&&
dimensions
.
z
==
1
,
"1D texture but higher dimensions are not 1!"
);
cgtAssert
(
type
=
=
GL_TEXTURE_2D
&&
dimensions
.
z
==
1
,
"2D texture but z is not 1!"
);
cgtAssert
(
type
!
=
GL_TEXTURE_1D
||
(
dimensions
.
y
==
1
&&
dimensions
.
z
==
1
)
,
"1D texture but higher dimensions are not 1!"
);
cgtAssert
(
type
!
=
GL_TEXTURE_2D
||
dimensions
.
z
==
1
,
"2D texture but z is not 1!"
);
#ifdef ENABLE_TEXTURE_POOL
std
::
lock_guard
<
std
::
mutex
>
scope_lock
(
accessMutex_
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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