DGLE-HQ / DGLE

Powerful independent cross-platform engine for 2D/3D games and visualizations. Young, strong and crazy!

Home Page:http://dgle.dronprogs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CCoreRendererGL::CreateGeometryBuffer() and CCoreRendererGL::CreateTexture() else issues.

megaDRONe86 opened this issue · comments

Consider this code:
CCoreRendererGL::CreateGeometryBuffer()
if (indexes_data_size != 0)
{
desc.pIndexBuffer = new uint8[indexes_data_size];
memcpy(desc.pIndexBuffer, stDrawDesc.pIndexBuffer, indexes_data_size);
}
else
desc.pIndexBuffer = NULL;
and
CCoreRendererGL::CreateTexture()
if (eDataAlignment == CRDA_ALIGNED_BY_4)
cur_align = GetDataAlignmentIncrement((uint)i_cur_w, bytes_per_pixel, 4);
else
cur_align = 0;