Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jan 1, 2016
1 parent 1a6c3f9 commit b8278f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion doomsday/apps/client/src/render/environ.cpp
Expand Up @@ -166,7 +166,7 @@ DENG2_PIMPL(Environment)
if(found != maps.constEnd())
{
EnvMaps const &env = found.value();
DENG2_ASSERT(env.interior.isEmpty() && env.exterior.isEmpty());
DENG2_ASSERT(!(env.interior.isEmpty() && env.exterior.isEmpty()));

if(!env.exterior.isEmpty())
{
Expand Down
2 changes: 1 addition & 1 deletion doomsday/sdk/libappfw/src/widgets/labelwidget.cpp
Expand Up @@ -719,7 +719,7 @@ void LabelWidget::setMaximumTextWidth(int pixels)
setMaximumTextWidth(Const(pixels));
}

void de::LabelWidget::setMaximumTextWidth(Rule const &pixels)
void LabelWidget::setMaximumTextWidth(Rule const &pixels)
{
changeRef(d->maxTextWidth, pixels);
requestGeometry();
Expand Down
7 changes: 3 additions & 4 deletions doomsday/sdk/libgui/src/graphics/gltexture.cpp
Expand Up @@ -13,7 +13,7 @@
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
* General Public License for more details. You should have received a copy of
* the GNU Lesser General Public License along with this program; if not, see:
* http://www.gnu.org/licenses</small>
* http://www.gnu.org/licenses</small>
*/

#include "de/GLTexture"
Expand Down Expand Up @@ -146,8 +146,7 @@ DENG2_PIMPL(GLTexture)

void glBind() const
{
DENG2_ASSERT(name != 0);

//DENG2_ASSERT(name != 0);
glBindTexture(texTarget, name); LIBGUI_ASSERT_GL_OK();
}

Expand All @@ -161,7 +160,7 @@ DENG2_PIMPL(GLTexture)
* calling.
*/
void glUpdateParamsOfBoundTexture()
{
{
glTexParameteri(texTarget, GL_TEXTURE_WRAP_S, glWrap(wrap.x));
glTexParameteri(texTarget, GL_TEXTURE_WRAP_T, glWrap(wrap.y));
glTexParameteri(texTarget, GL_TEXTURE_MAG_FILTER, magFilter == Nearest? GL_NEAREST : GL_LINEAR);
Expand Down

0 comments on commit b8278f9

Please sign in to comment.