- status: open --> pending-postponed
The documentation of HGE::Target_Create says:
[quote]
The render target dimensions must be a power of 2. If this condition isn't met, the requested dimensions are automatically adjusted to the closest power of 2 dimensions, bigger than the requested ones.
[/quote]
However, when I create a render target which size is not power of 2 (HGE will adjust it as the documentation says that) and enable z-buffer, the application crashes.
You can reproduce the problem when you modify one line from HGE's tutorial04.
Change from tutorial04 this line:
target=hge->Target_Create(512,512,false);
into:
target=hge->Target_Create(511,512,true);
Now build and run the application and it will crash. When you specify a size which is power of two or you don't use the z-buffer, it works.