Skip to content

[OpenGL] Failing to load DXT1 textures with OpenGL renderer #1777

@Neloreck

Description

@Neloreck

Describe the bug

Assertion from GLI library is failing when try to load some textures from anomaly mod. Seems like particles/weapons are using DXT1 without alpha channel for optimal space usage (wpn_gauss.dds 682kb instead of original 1366kb).

Everything is OK with other renderers.
Original GLI is not updated for ages, unfortunately externals fork does not seem alive too so reporting it here.

To Reproduce

  • Try using provided gauss textures
  • Use mixed build + openGL renderer
  • Start game
  • Get breakpoint on assertion (link)

Expected behavior

  • No failures with openGL renderer
  • Clearly not all the data is copied later with std::memcpy

Screenshots, videos

24kb are lost somewhere

Image

Since header/header10 parts are read and game works on assertion comment, It feels like something is missing in this calculation approximation, but I am not familiar with renderer logics:
this->GlobalMemorySize = Storage.layer_size(BaseFace, MaxFace, BaseLevel, MaxLevel) * Layers;

wpn_gauss.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThe issue in the run-time.External (3rd party)This issue is related to external component used by our project.Modmaker ExperienceModmaker experience with OpenXRayOpenGLRenderer

    Type

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions