bnoazx005 / TDEngine2

TDEngine2 is a cross-platform game engine
Apache License 2.0
18 stars 4 forks source link

[Bug] CBaseMaterial::mId is invalid when a resource is actually loaded #60

Closed bnoazx005 closed 3 years ago

bnoazx005 commented 3 years ago

Bug report

CBaseResource::mId doesn't contain actual handle of a resource

Environment

Win 10 (x64) / Visual Studio 2017 / TDEngine2-v0.4 / NVidia GTX 860M

Steps to reproduce the issue

  1. Try to load some material
  2. Check up mId member of CBaseResource

What's the expected result?

The field should equal to some non-invalid value

What's the actual result?

mId is always Invalid for any resource that is successfully loaded