DGLE-HQ / DGLE

Powerful independent cross-platform engine for 2D/3D games and visualizations. Young, strong and crazy!
http://dgle.dronprogs.org
GNU Lesser General Public License v3.0
161 stars 39 forks source link

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

Closed megaDRONe86 closed 9 years ago

megaDRONe86 commented 9 years ago

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;