Languages

Menu
Sites
Language
Problems while loading .DDS font

Hello, I'm trying to load .dds texture(font) using OpenGL. But I faced problem with this function:

glCompressedTexImage2D(GL_TEXTURE_2D, level, format, width, height,
    		0, size, buffer + offset);

This code works fine on windows, but here I have a 1280 ( glGetLastError() )error and I have a black square instead of text. Could some one, please, help me ? Or maybe there are other ways to load custom font viz OpneGL ? Thank you!

Responses

1 Replies
Alex Dem

Hi,
It is not quite clear (maybe better to provide code snippet or working example).
If your code works on one device and did not work on other maybe format is not supported on device and you should check it and convert to other format or configure other incoming parameters etc...
But I can't claim I'm not expert in OpenGL.
Alexey.