Fix vtable offsets in ResourceTextureManager implementation
このコミットが含まれているのは:
1 親
a1556d51d9
コミット
54a060ff01
2ファイル変更
+4
-4
検索条件に一致するファイルはありません
-4
@@ -105,8 +105,6 @@ partial struct ResourceTextureManager
|
||||
uint* strides,
|
||||
uint dataSize)
|
||||
{
|
||||
@this = (ResourceTextureManager*)&((void**)@this)[-1];
|
||||
|
||||
// Return E_POINTER if any input pointer is null
|
||||
if (resourceTextureProperties is null ||
|
||||
data is null ||
|
||||
@@ -198,8 +196,6 @@ partial struct ResourceTextureManager
|
||||
byte* data,
|
||||
uint dataCount)
|
||||
{
|
||||
@this = (ResourceTextureManager*)&((void**)@this)[-1];
|
||||
|
||||
// If a resource texture already exists, just forward the call
|
||||
if (@this->d2D1ResourceTexture is not null)
|
||||
{
|
||||
|
||||
+4
@@ -87,6 +87,8 @@ partial struct ResourceTextureManager
|
||||
[UnmanagedCallersOnly]
|
||||
public static int Initialize(ResourceTextureManager* @this, ID2D1EffectContext* effectContext)
|
||||
{
|
||||
@this = (ResourceTextureManager*)&((void**)@this)[-1];
|
||||
|
||||
if (effectContext is null)
|
||||
{
|
||||
return E.E_POINTER;
|
||||
@@ -117,6 +119,8 @@ partial struct ResourceTextureManager
|
||||
[UnmanagedCallersOnly]
|
||||
public static int GetResourceTexture(ResourceTextureManager* @this, ID2D1ResourceTexture** resourceTexture)
|
||||
{
|
||||
@this = (ResourceTextureManager*)&((void**)@this)[-1];
|
||||
|
||||
if (*resourceTexture is not null)
|
||||
{
|
||||
return E.E_POINTER;
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする