Here is a simple OpenGL project that uses DXT textures:
README.md describes how to build it on FreeBSD, it's very simple.
Here is how it should look like:
Here is how it actually looks like now on FreeBSD:
In other words all DXT textures are rendered black. I had this issue before a few months ago and installing `libtxn_dxtn-20140604` package fixed it. The problem is there is no such package or any similar package any longer.
* Fujitsu Lifebook E733
* Intel HD Graphics 4000
A few updates on this ticket.
1) Previous discussion https://lists.freebsd.org/pipermail/freebsd-x11/2016-February/017198.html
2) Installing libtxn_dxtn-20140604.txz from here http://ftp.rusnet.ru/FreeBSD/PKG/freebsd%3A10%3Ax86%3A64/release_3/All/ fixes a problem. (Mirror: http://afiskon.ru/s/8b/13dfd0ba0b_libtxn_dxtn-20140604.txz ) So problem is really caused by a missing package. What happened to it? Didn't find any corresponding records in /usr/ports/UPDATING.
3) After installing a package FPS is very low (from 10 to 40 FPS depending on window size) and textures are rendered very weird:
I need to add user to 'video' group:
sudo pw group mod video -m eax
... and re-login or run `su eax` (since adding user to the group doesn't apply immediately - http://unix.stackexchange.com/q/18796 ) to fix this. After this everything renders as expected!
I strongly believe that this is a very inconvenient for users. Any chance it could be considered a bug (a minor one)?
It appears that graphics/dri is missing a RUN_DEPENDS=libtxc_dxtn.so:graphics/s2tc. I can commit this fix if someone from x11 can approve?
(P.S. Note that it is libtxc_dxtn, not libtxn_dxtn. There appeared to be a typo in the original port: PORTORIGIN = graphics/libtxc_dxtn, PORTNAME = libtxn_dxtn, LIBNAME = libtxc_dxtn).