Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1382 closed defect (fixed)

ERROR: CRenderer::EndFrame: GL errors occurred

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

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 (2)

system_info.txt (3.8 KB ) - added by fabio 12 years ago.
debug.txt (3.8 KB ) - added by fabio 12 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 by fabio, 12 years ago

Milestone: BacklogAlpha 10
Priority: Should HaveMust Have

comment:2 by leper, 12 years ago

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

by fabio, 12 years ago

Attachment: system_info.txt added

comment:3 by fabio, 12 years ago

Yes, it happens always.

comment:4 by leper, 12 years ago

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

comment:5 by fabio, 12 years ago

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.

by fabio, 12 years ago

Attachment: debug.txt added

comment:6 by fabio, 12 years ago

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

comment:7 by Jonathan Waller, 12 years ago

Owner: set to Jonathan Waller
Resolution: fixed
Status: newclosed

In 11786:

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

comment:8 by fabio, 12 years ago

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

comment:9 by Jonathan Waller, 12 years ago

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.