Ticket #1382 (closed defect: fixed)

Opened 13 months ago

Last modified 13 months ago

ERROR: CRenderer::EndFrame: GL errors occurred

Reported by: fabio Owned by: quantumstate
Priority: Must Have Milestone: Alpha 10
Component: Core engine Keywords:
Cc:

Description

After building and selecting a mill I get this error:

ERROR: CRenderer::EndFrame: GL errors occurred

and its techs are corrupted like in this image:

http://img689.imageshack.us/img689/3371/corruptionot.png

Attachments

system_info.txt (3.8 KB) - added by fabio 13 months ago.
debug.txt (3.8 KB) - added by fabio 13 months ago.

Change History

comment:1 Changed 13 months ago by fabio

  • Priority changed from Should Have to Must Have
  • Milestone changed from Backlog to Alpha 10

comment:2 Changed 13 months ago by leper

Does this occur everytime? Could you attach your system_info.txt?

Changed 13 months ago by fabio

comment:3 Changed 13 months ago by fabio

Yes, it happens always.

comment:4 Changed 13 months ago by leper

Could you try to reproduce this in a debug build? That should give us some clues where it is failing.

comment:5 Changed 13 months ago by fabio

Attached debug output. Unfortunately the integrated feature to attach gdb never worked for me (as you can see in the output), I also cannot run it under gdb myself.

Changed 13 months ago by fabio

comment:6 Changed 13 months ago by fabio

(I mean I can't use gdb when the 0 A.D. pop up window asking what to do appears.)

comment:7 Changed 13 months ago by quantumstate

  • Owner set to quantumstate
  • Status changed from new to closed
  • Resolution set to fixed

In 11786:

Scale images to power of 2 sizes. Fixes #1382.

comment:8 Changed 13 months ago by fabio

OK, but why it works fine on other drivers and not here?

comment:9 Changed 13 months ago by quantumstate

Drivers for modern hardware are meant to support non power of 2 textures but most applications tend not to use them for compatibility reasons. So have a driver such as ours which has problems with NPOT textures doesn't break much and is presumably a low priority item.

From reading

http://www.opengl.org/wiki/NPOT_Texture

I found that our problem is more specifically a non multiple of 4 texture size. This causes issues with compression as mentioned on that web page. Using 16x36 worked when I tested.

Note: See TracTickets for help on using tickets.