Use uint8_t* instead of void* for texture data
NOTE: In texture_setimage, I had to move variables to the top of the scope because microsoft's C compiler will give the legacy C90 error of: 'illegal use of this type as an expression'. To sum it up, microsoft's C compiler is still utter garbage.
This commit is contained in:
@@ -259,8 +259,8 @@ struct gs_texture_2d : gs_texture {
|
||||
bool genMipmaps;
|
||||
HANDLE sharedHandle;
|
||||
|
||||
void InitSRD(vector<D3D11_SUBRESOURCE_DATA> &srd, const void **data);
|
||||
void InitTexture(const void **data);
|
||||
void InitSRD(vector<D3D11_SUBRESOURCE_DATA> &srd, const uint8_t **data);
|
||||
void InitTexture(const uint8_t **data);
|
||||
void InitResourceView();
|
||||
void InitRenderTargets();
|
||||
|
||||
@@ -280,8 +280,8 @@ struct gs_texture_2d : gs_texture {
|
||||
|
||||
gs_texture_2d(device_t device, uint32_t width, uint32_t height,
|
||||
gs_color_format colorFormat, uint32_t levels,
|
||||
const void **data, uint32_t flags, gs_texture_type type,
|
||||
bool gdiCompatible, bool shared);
|
||||
const uint8_t **data, uint32_t flags,
|
||||
gs_texture_type type, bool gdiCompatible, bool shared);
|
||||
};
|
||||
|
||||
struct gs_zstencil_buffer {
|
||||
|
Reference in New Issue
Block a user