Skip to content

Commit

Permalink
Fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nyorain committed Aug 27, 2024
1 parent b3a7a70 commit 1e4d6f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions docs/example/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <vulkan/vulkan.h>
#include <string.h>
#include <time.h>
#include <signal.h>

// TODO: handle surface lost error

Expand Down Expand Up @@ -959,7 +958,7 @@ bool init_renderer(struct state* state) {
// queue infos
uint32_t qfam_count;
vkGetPhysicalDeviceQueueFamilyProperties(state->phdev, &qfam_count, NULL);
VkQueueFamilyProperties *qprops = calloc(sizeof(*qprops), qfam_count);
VkQueueFamilyProperties *qprops = calloc(qfam_count, sizeof(*qprops));
vkGetPhysicalDeviceQueueFamilyProperties(state->phdev, &qfam_count, qprops);

uint32_t gfx_qfam = 0xFFFFFFFFu; // graphics queue family
Expand Down
4 changes: 2 additions & 2 deletions docs/valgrind.sup
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
fun:dlclose
}
{
Ignore dlopen bug.
Ignore tracy leak.
Memcheck:Leak
...
fun:tracy::SetThreadName
fun:tracy_malloc_fast
...
}
2 changes: 1 addition & 1 deletion src/tracy/client/TracySysTrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@ void SysTraceWorker( void* ptr )
while( activeNum > 0 )
{
int sel = -1;
int selPos;
int selPos = 0;
int64_t t0 = std::numeric_limits<int64_t>::max();
for( int i=0; i<activeNum; i++ )
{
Expand Down

0 comments on commit 1e4d6f7

Please sign in to comment.